/* //////////////////////////////////////////////////
//////////////   Mogul LIST VIEW   /////////////// 
//////////////////////////////////////////////////*/
:root{
  /* Enhanced color palette */
  --primary-color: #4a6cf7;
  --primary-light: #eaefff;
  --secondary-color: #334155;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --border-color: #e5e7eb;
  --text-color: #334155;
  --text-light: #64748b;
  --hover-color: #f1f5f9;
  --header-bg: linear-gradient(to bottom, #4a6cf7, #3b5fe2);
  --header-text: #ffffff;
  --accent-color: #38bdf8;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --stagedStart-cell-w: 180px;
    --stagedEnd-cell-w: 180px;
    --activeStart-cell-w: 180px;
    --activeEnd-cell-w: 180px;

  /* Cell width definitions remain the same */
  /* ================== User ================== */
  --thumb-cell-w: 150px;
  --name-cell-w: 120px;
  --email-cell-w: 330px;
  --location-cell-w: 110px;
  --organization-cell-w: 90px;
  --registered-cell-w: 120px;
  --lastlogin-cell-w: 110px;
  --totalVideos-cell-w: 180px;
  --lastSaved-cell-w: 162px;
  --linksClicked-cell-w: 131px;
  --videoViews-cell-w: 172px;
  --uniqueViews-cell-w: 137px;
  --fbPosts-cell-w: 161px;
  --MaximumVideosAllowed-cell-w: 244px;
  --active-cell-w: 90px;
  --role-cell-w: 140px;
  --editUsers-cell-w: 110px;
    
  /* All other cell width definitions remain the same */
  /* ================== Bonks ================== */
  --BonksThumb-cell-w: 150px;
  --BonksOrganization-cell-w: 110px;
  --BonksMostPopular-cell-w: 190px;
  --BonksFileName-cell-w: 175px;
  --BonksUploadedDate-cell-w: 190px;
  --BonksUploadedBy-cell-w: 165px;
  --BonksWidth-cell-w: 110px;
  --BonksHeight-cell-w: 110px;
  --BonksFileSize-cell-w: 120px;
  --BonksPrice-cell-w: 120px;

  /* ================== Mogul Videos ================== */
  --activeThumb-cell-w: 180px;
  --activeTitle-cell-w: 165px;
  --activeOwner-cell-w: 120px;
  --activeOrgName-cell-w: 100px;
  --activeVisibility-cell-w: 135px;
  --activeViewable-cell-w: 135px;
  --activeCreated-cell-w: 150px;
  --activeModified-cell-w: 150px;
  --activeLast-Published-cell-w:150px;
  --activeLastViewed-cell-w: 150px;
  --activeClicks-cell-w: 100px;
  --activeViews-cell-w: 100px;
  --activeUniqueViews-cell-w: 155px;
  --activeDwellTime-cell-w: 120px;
  --activeVideo-Width-cell-w:80px;
  --activeVideo-Hight-cell-w:80px;
  --activeVideo-Size-cell-w:100px;
  --activeVideo-Length-cell-w:100px;
  --activeVideo-Fps-cell-w:80px;
  --activeVideo-BitRate-cell-w:80px;
  --activeVideo-Views-cell-w:80px;
  --activeId-cell-w:80px;
  --activeVideo-Path-cell-w: 200px;

  --stagedThumb-cell-w: 180px;
  --stagedTitle-cell-w: 165px;
  --stagedOrgName-cell-w: 100px;
  --stagedOwner-cell-w: 120px;
  --stagedVisibility-cell-w: 135px;
  --stagedViewable-cell-w: 135px;
  --stagedCreated-cell-w: 150px;
  --stagedModified-cell-w: 150px;
  --stagedLast-Published-cell-w: 160px;
  --stagedVideo-Width-cell-w: 120px;
  --stagedVideo-Hight-cell-w: 120px;
  --stagedVideo-Size-cell-w: 120px;
  --stagedVideo-Length-cell-w: 120px;
  --stagedVideo-Fps-cell-w: 120px;
  --stagedVideo-BitRate-cell-w: 120px;
  --stagedVideo-Views-cell-w:80px;
  --stagedId-cell-w:80px;
  --stagedVideo-Path-cell-w: 200px;

  /* ================== Mogul Organization ================== */
  --OrgId-cell-w: 120px;
  --OrgName-cell-w: 300px;
  --OrgLogo-cell-w: 200px;
  --OrgLink-cell-w: 350px;
  --OrgColor-cell-w: 225px;
  --album-cell-w: 300px;

  /* ================== Mogul Invited User ================== */
  --invID-cell-w: 120px;
  --invOrgName-cell-w: 255px;
  --invEmail-cell-w: 420px;
  --invProgress-cell-w: 145px;
  --invRole-cell-w: 145px;
  --invLink-cell-w: 120px;
}

/* Table wrapper containers */
.ActiveTableWrapper,
.StagedTableWrapper {
  width: 97%;
  margin: 30px auto 40px;
  position: relative;
}

/* Main container styling - enhanced with better shadows and borders */
.tableWrapper {
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: auto; /* Enable scrolling */
  background-color: white;
  max-height: 70vh;
}

/* Table styling */
.table-list {
  display: table;
  width: max-content; /* Allow table to expand */
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Enhanced header styling with gradient background */
.table-header {
  /* background: var(--header-bg); */
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
}

.table-header .table-cell {
  padding: 15px 10px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  transition: background-color 0.2s;
}

/* Header sort indicators */
.table-header .table-cell::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  vertical-align: middle;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.table-header .table-cell:hover::after {
  opacity: 1;
}

.table-header .table-cell.sort-asc::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid white;
}

.table-header .table-cell.sort-desc::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid white;
}

/* Row styling with subtle borders */
.table-row {
  display: flex;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
  border-bottom: none;
}

/* Alternating row colors for better readability */
.table-row:nth-child(even) .bodyTable-cell {
  background-color: var(--light-gray);
}

/* Enhanced hover effect */
.table-row:hover .bodyTable-cell {
  background-color: var(--primary-light);
}

/* Cell styling - cleaned up borders, better padding */
.table-body .table-cell,
.bodyTable-cell {
  padding: 14px 10px;
  text-align: center;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--text-color);
  transition: background-color 0.2s;
}

/* ID column styling */
.activeId-cell, .stagedId-cell {
  font-family: monospace;
  color: var(--text-light);
}

/* Images styling - improved thumbnails */
.table-cell img {
  max-width: 100%;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.table-cell img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fixing thumb cells display */
.table-body .activeThumb-cell,
.table-body .stagedThumb-cell,
.table-body .thumb-cell,
.table-body .BonksThumb-cell {
  display: table-cell;
  padding: 10px;
}

/* Enhanced hover effect for icons */
.table-row:hover .bodyTable-cell i {
  color: var(--primary-color) !important;
}

/* Custom scrollbar for better usability */
.tableWrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tableWrapper::-webkit-scrollbar-track {
  background: #f5f7fa;
  border-radius: 10px;
}

.tableWrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
  border: 2px solid #f5f7fa;
}

.tableWrapper::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Form elements styling - enhanced dropdowns and inputs */
.table-cell input,
.table-cell textarea {
  width: 95%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.table-cell input:focus,
.table-cell textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
  outline: none;
}

/* Enhanced select styling */
.table-cell select {
  width: 95%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.2s;
}

.table-cell select:hover {
  border-color: var(--primary-color);
}

.table-cell select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
  outline: none;
}

/* Styling for three-dot menu button */
.table-cell .dropdown-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.table-cell .dropdown-toggle:hover {
  background-color: var(--medium-gray);
}

.table-cell .dropdown-toggle i {
  color: var(--text-light);
}

/* Date/time cells */
.activeCreated-cell,
.activeModified-cell,
.activeLast-Published-cell,
.stagedCreated-cell,
.stagedModified-cell,
.stagedLast-Published-cell {
  font-size: 13px;
  color: var(--text-light);
}

/* Utility class for text overflow */
.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status labels */
.status-label {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-pending {
  background-color: #fff7ed;
  color: #9a3412;
}

/* All the cell width definitions remain the same */
.thumb-cell { width: var(--thumb-cell-w); }
.name-cell { width: var(--name-cell-w); }
.email-cell { width: var(--email-cell-w); }
.location-cell { width: var(--location-cell-w); }
.organization-cell { width: var(--organization-cell-w); }
.registered-cell { width: var(--registered-cell-w); }
.lastlogin-cell { width: var(--lastlogin-cell-w); }
.totalVideos-cell { width: var(--totalVideos-cell-w); }
.lastSaved-cell { width: var(--lastSaved-cell-w); }
.linksClicked-cell { width: var(--linksClicked-cell-w); }
.videoViews-cell { width: var(--videoViews-cell-w); }
.uniqueViews-cell { width: var(--uniqueViews-cell-w); }
.fbPosts-cell { width: var(--fbPosts-cell-w); }
.MaximumVideosAllowed-cell { width: var(--MaximumVideosAllowed-cell-w); }
.active-cell { width: var(--active-cell-w); }
.role-cell { width: var(--role-cell-w); }
.editUsers-cell { width: var(--editUsers-cell-w); }

/* Bonks Table Cell Width */
.BonksThumb-cell { width: var(--BonksThumb-cell-w); }
.BonksOrganization-cell { width: var(--BonksOrganization-cell-w); }
.BonksMostPopular-cell { width: var(--BonksMostPopular-cell-w); }
.BonksFileName-cell { width: var(--BonksFileName-cell-w); }
.BonksUploadedDate-cell { width: var(--BonksUploadedDate-cell-w); }
.BonksUploadedBy-cell { width: var(--BonksUploadedBy-cell-w); }
.BonksWidth-cell { width: var(--BonksWidth-cell-w); }
.BonksHeight-cell { width: var(--BonksHeight-cell-w); }
.BonksFileSize-cell { width: var(--BonksFileSize-cell-w); }
.BonksPrice-cell { width: var(--BonksPrice-cell-w); }

/* Active Videos Table Cell Width */
.activeId-cell { width: var(--activeId-cell-w); }
.activeThumb-cell { width: var(--activeThumb-cell-w); }
.activeTitle-cell { width: var(--activeTitle-cell-w); }
.activeOrgName-cell { width: var(--activeOrgName-cell-w); }
.activeVisibility-cell { width: var(--activeVisibility-cell-w); }
.activeOwner-cell { width: var(--activeOwner-cell-w); }
.activeViewable-cell { width: var(--activeViewable-cell-w); }
.activeLast-Published-cell { width: var(--activeLast-Published-cell-w); }
.activeCreated-cell { width: var(--activeCreated-cell-w); }
.activeModified-cell { width: var(--activeModified-cell-w); }
.activeLastViewed-cell { width: var(--activeLastViewed-cell-w); }
.activeClicks-cell { width: var(--activeClicks-cell-w); }
.activeViews-cell { width: var(--activeViews-cell-w); }
.activeUniqueViews-cell { width: var(--activeUniqueViews-cell-w); }
.activeDwellTime-cell { width: var(--activeDwellTime-cell-w); }
.activeVideo-Width-cell { width: var(--activeVideo-Width-cell-w); }
.activeVideo-Hight-cell { width: var(--activeVideo-Hight-cell-w); }
.activeVideo-Size-cell { width: var(--activeVideo-Size-cell-w); }
.activeVideo-Length-cell { width: var(--activeVideo-Length-cell-w); }
.activeVideo-Fps-cell { width: var(--activeVideo-Fps-cell-w); }
.activeVideo-BitRate-cell { width: var(--activeVideo-BitRate-cell-w); }
.activeVideo-Views-cell { width: var(--activeVideo-Views-cell-w); }
.activeVideo-Path-cell { width: var(--activeVideo-Path-cell-w); }

/* Staged Videos Table Cell Width */
.stagedId-cell { width: var(--stagedId-cell-w); }
.stagedThumb-cell { width: var(--stagedThumb-cell-w); }
.stagedOrgName-cell { width: var(--stagedOrgName-cell-w); }
.stagedTitle-cell { width: var(--stagedTitle-cell-w); }
.stagedOwner-cell { width: var(--stagedOwner-cell-w); }
.stagedVisibility-cell { width: var(--stagedVisibility-cell-w); }
.stagedViewable-cell { width: var(--stagedViewable-cell-w); }
.stagedCreated-cell { width: var(--stagedCreated-cell-w); }
.stagedModified-cell { width: var(--stagedModified-cell-w); }
.stagedLast-Published-cell { width: var(--stagedLast-Published-cell-w); }
.stagedVideo-Width-cell { width: var(--stagedVideo-Width-cell-w); }
.stagedVideo-Hight-cell { width: var(--stagedVideo-Hight-cell-w); }
.stagedVideo-Size-cell { width: var(--stagedVideo-Size-cell-w); }
.stagedVideo-Length-cell { width: var(--stagedVideo-Length-cell-w); }
.stagedVideo-Fps-cell { width: var(--stagedVideo-Fps-cell-w); }
.stagedVideo-BitRate-cell { width: var(--stagedVideo-BitRate-cell-w); }
.stagedVideo-Views-cell { width: var(--stagedVideo-Views-cell-w); }
.stagedVideo-Path-cell { width: var(--stagedVideo-Path-cell-w); }

/* Organization Table Cell Width */
.OrgId-cell { width: var(--OrgId-cell-w); }
.OrgName-cell { width: var(--OrgName-cell-w); }
.OrgLogo-cell { width: var(--OrgLogo-cell-w); }
.OrgLink-cell { width: var(--OrgLink-cell-w); }
.OrgColor-cell { width: var(--OrgColor-cell-w); }
.action-cell { width: var(--action-cell-w); }

/* Invited User Table Cell Width */
.invID-cell { width: var(--invID-cell-w); }
.invOrgName-cell { width: var(--invOrgName-cell-w); }
.invEmail-cell { width: var(--invEmail-cell-w); }
.invProgress-cell { width: var(--invProgress-cell-w); }
.invRole-cell { width: var(--invRole-cell-w); }
.invLink-cell { width: var(--invLink-cell-w); }

/* Responsive adjustments */
@media (max-width: 1200px) {
  .ActiveTableWrapper,
  .StagedTableWrapper {
    width: 98%;
  }
}

/* Table title and section headers */
.table-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.table-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-header .table-cell {
    font-weight: 600;
    color: #495057;
    text-align: center;
    padding: 12px 8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Fix column styling */
.stagedStart-cell, .activeStart-cell,
.stagedEnd-cell, .activeEnd-cell {
    width: 180px;
    text-align: center;
}

/* Add color coding */
.stagedStart-cell, .activeStart-cell {
    color: #28a745; /* Green */
}

.stagedEnd-cell, .activeEnd-cell {
    color: #dc3545; /* Red */
}
