/* ===== DESKTOP AND LARGE TABLET LAYOUT - SIDEBAR AND TABLE IMPROVEMENTS ===== */

/* ===== DESKTOP AND LARGE TABLET LAYOUT - SIDEBAR AND TABLE IMPROVEMENTS ===== */

/* Desktop sidebar - only apply to large screens */
@media (min-width: 1025px) {
  #sidebar {
    position: fixed !important;
    top: 130px !important;
    left: 0 !important;
    width: 200px !important;
    height: calc(100vh - 130px) !important;
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1) !important;
    z-index: 999 !important;
    transform: translateX(0) !important;
  }

  #rightsidepagecontainer {
    position: fixed !important;
    top: 130px !important;
    left: 200px !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    padding: 24px !important;
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px) !important;
  }
}

/* Medium screens - smaller sidebar */
@media (min-width: 769px) and (max-width: 1024px) {
  #sidebar {
    /* Let navbarssmallview.css handle positioning but ensure it's visible */
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
    color: #fff !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1) !important;
    z-index: 999 !important;
    display: flex !important;
    visibility: visible !important;
  }

  #rightsidepagecontainer {
    /* Let navbarssmallview.css handle positioning */
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px) !important;
    
  }
}

/* Small screens - let navbarssmallview.css handle completely */
@media (max-width: 768px) {
  #sidebar {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
    color: #fff !important;
    z-index: 999 !important;
    display: flex !important;
    visibility: visible !important;
  }

  #rightsidepagecontainer {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px) !important;
   
  }
}



/* Ensure sidebar is always visible */
#sidebar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#sidebar div {
  display: flex !important;
}

#sidebar a {
  display: flex !important;
}

#sidebar button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===== TABLE FIXES - PROPER COLUMN WIDTHS (ALL SCREEN SIZES) ===== */

/* Table container with proper overflow */
.table-container {
  width: 100% !important;
  overflow-x: auto !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  margin-bottom: 20px !important;
}

/* Table with proper minimum width */
#table,
table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: white !important;
  table-layout: fixed !important;
}

/* Responsive table widths */
@media (min-width: 1025px) {
  #table, table {
    min-width: 800px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #table, table {
    min-width: 700px !important;
  }
}

@media (max-width: 768px) {
  #table, table {
    min-width: 600px !important;
  }
}

/* ===== PROPERLY HIDE MOBILE VIEWS ON DESKTOP ===== */

/* Hide mobile card views on desktop and tablet - FORCE HIDDEN */
@media (min-width: 481px) {
  .mobile-card-view,
  .mobile-assignment-view {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }
  
  /* Ensure table is always visible on desktop */
  .table-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
  }
}

/* Only show mobile cards on very small screens */
@media (max-width: 480px) {
  .table-container {
    display: none !important;
  }
  
  .mobile-card-view {
    display: block !important;
  }
}

/* COLUMN WIDTH SPECIFICATIONS */
thead th:nth-child(1), /* Name column */
tbody td:nth-child(1) {
  width: 25% !important;
  min-width: 180px !important;
  text-align: left !important;
}

thead th:nth-child(2), /* Email column */
tbody td:nth-child(2) {
  width: 35% !important;
  min-width: 220px !important;
}

thead th:nth-child(3), /* Phone column */
tbody td:nth-child(3) {
  width: 20% !important;
  min-width: 120px !important;
}

thead th:nth-child(4), /* Actions column */
tbody td:nth-child(4) {
  width: 20% !important;
  min-width: 160px !important;
  text-align: center !important;
}

/* Header styling */
thead th {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
  color: white !important;
  padding: 16px 12px !important;
  text-align: left !important;
  font-weight: 600 !important;
  border: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  white-space: nowrap !important;
}

/* Actions column header should be centered */
thead th:nth-child(4) {
  text-align: center !important;
}

/* Body cell styling */
tbody td {
  padding: 16px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  word-wrap: break-word !important;
  overflow: hidden !important;
  
}

/* Name column specific styling */
tbody td:first-child {
  text-align: left !important;
  font-weight: 600 !important;
}

tbody td:first-child a {
  color: var(--primary-green) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: block !important;
  text-align: left !important;
}

tbody td:first-child a:hover {
  color: var(--primary-green-dark) !important;
  text-decoration: underline !important;
}

/* Email column styling */
tbody td:nth-child(2) {
  font-size: 14px !important;
  color: #666 !important;
}

/* Phone column styling */
tbody td:nth-child(3) {
  font-family: monospace !important;
  font-size: 14px !important;
}

/* ===== BUTTON FIXES IN ACTIONS COLUMN ===== */
tbody td:last-child {
  text-align: center !important;
  padding: 12px !important;
  white-space: nowrap !important;
}

/* Button container with proper centering */
tbody td:last-child > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
}

/* Individual button styling */
.viewBtn,
.deleteBtn {
  padding: 8px 16px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 70px !important;
  font-size: 14px !important;
  flex: 0 0 auto !important;
}

/* Responsive button sizing */
@media (max-width: 768px) {
  .viewBtn,
  .deleteBtn {
    padding: 6px 12px !important;
    min-width: 60px !important;
    font-size: 12px !important;
  }
}

.viewBtn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.viewBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
}

.deleteBtn {
  background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-light) 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3) !important;
}

.deleteBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4) !important;
}

/* ===== SEARCH AND CONTROLS AREA ===== */
#clientsearchbar {
  margin-bottom: 20px !important;
  width: 100% !important;
}

#clientsearchbar input {
  width: 100% !important;
  max-width: 400px !important;
  padding: 8px 16px !important; /* Reduced from 12px to 8px */
  border: 1px solid rgba(45, 90, 61, 0.3) !important; /* Reduced from 2px to 1px */
  border-radius: 20px !important; /* Reduced from 25px to 20px */
  font-size: 14px !important; /* Reduced from 16px to 14px */
  transition: all 0.3s ease !important;
  height: auto !important; /* Ensure height is auto */
  line-height: 1.4 !important; /* Better line height */
}

#clientsearchbar input:focus {
  outline: none !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 2px rgba(45, 90, 61, 0.1) !important; /* Reduced shadow */
}

/* Assignment checkbox area */
#employeeAssignDiv {
  margin-bottom: 20px !important;
  padding: 12px 16px !important;
  background: rgba(45, 90, 61, 0.1) !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

/* ===== UPDATED MOBILE CARD LAYOUT ===== */
@media (max-width: 480px) {
  .client-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 0 !important; /* Remove padding to allow name section to go edge to edge */
    margin-bottom: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Ensure border-radius works properly */
  }
  
  /* Name section with green background and white text */
  .client-card .name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: white !important; /* White text */
    background: var(--primary-green) !important; /* Green background */
    margin: 0 !important; /* Remove margin */
    padding: 16px !important; /* Add padding inside the green area */
    text-align: left !important;
    border-radius: 0 !important; /* Remove any border radius from name */
  }
  
  /* Remove underline from name link */
  .client-card .name a {
    color: white !important;
    text-decoration: none !important;
    display: block !important;
  }
  
  .client-card .name a:hover {
    color: #f0f0f0 !important; /* Slightly lighter white on hover */
    text-decoration: none !important;
  }
  
  /* Container for email, phone, and actions */
  .client-card .content-area {
    padding: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
  
  /* Left side - email and phone info */
  .client-card .contact-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Contact header styling */
  .client-card .contact-header {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary-green) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--primary-green) !important;
    padding-bottom: 4px !important;
  }
  
  .client-card .email,
  .client-card .phone {
    color: #666 !important;
    margin-bottom: 6px !important;
    text-align: left !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  /* Emoji styling for contact info */
  .client-card .email::before {
    content: "📧" !important;
    font-size: 16px !important;
  }
  
  .client-card .phone::before {
    content: "📞" !important;
    font-size: 16px !important;
  }
  
  /* Right side - actions buttons stacked vertically */
  .client-card .actions {
    margin: 0 !important;
    margin-left: 16px !important; /* Space from contact info */
    display: flex !important;
    flex-direction: column !important; /* Stack vertically */
    justify-content: space-between !important; /* Space buttons evenly */
    align-items: center !important;
    gap: 8px !important; /* Space between buttons */
    min-height: 60px !important; /* Minimum height to ensure proper spacing */
  }
  
  /* When there's only one button, it will be centered due to space-between */
  .client-card .actions button {
    width: 70px !important; /* Fixed width for consistency */
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  .client-card .actions .viewBtn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    color: white !important;
  }
  
  .client-card .actions .deleteBtn {
    background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-light) 100%) !important;
    color: white !important;
  }
  
  .client-card .actions button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  }
}

/* ===== LOADING STATE ===== */
#table.loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  position: relative !important;
}

#table.loading::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 40px !important;
  height: 40px !important;
  border: 4px solid #f3f3f3 !important;
  border-top: 4px solid var(--primary-green) !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  transform: translate(-50%, -50%) !important;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ASSIGNMENT MODE STYLING ===== */
.assign-cell {
  min-width: 200px !important;
}

.assign-cell label {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 4px !important;
  font-size: 14px !important;
  gap: 6px !important;
}

.assign-cell input[type="checkbox"] {
  margin: 0 !important;
}

/* ===== MOBILE MENU BUTTON - ONLY FOR VERY SMALL SCREENS ===== */
@media (max-width: 600px) {
  .mobile-menu-btn {
    display: none !important; /* Let navbarssmallview.css handle navigation */
  }
}

/* ===== ACCOUNT DROPDOWN FIXES - HIGH PRIORITY TO OVERRIDE NAVBARSSMALLVIEW.CSS ===== */

/* Ensure account dropdown container has proper positioning with highest specificity */
#navbarbttns .account-dropdown-container,
#navbarbttns #create-dropdown-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  z-index: 1001 !important; /* Higher than navbar */
}

/* Dropdown menu positioning and styling - HIGHEST SPECIFICITY */
#navbarbttns #accountDropdown,
#navbarbttns .account-dropdown-container .dropdown-menu,
#navbarbttns #createDropdownMenu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 200px !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  padding: 8px 0 !important;
  z-index: 99999 !important; /* EXTREMELY high z-index */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: all 0.3s ease !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Hidden state for dropdown - OVERRIDE NAVBARSSMALLVIEW.CSS */
#navbarbttns #accountDropdown.hidden,
#navbarbttns .account-dropdown-container .dropdown-menu.hidden,
#navbarbttns #createDropdownMenu.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
  display: block !important; /* Keep display block, use opacity/visibility for hiding */
}

/* Create dropdown styling with high specificity */
#navbarbttns #createDropdownMenu div {
  padding: 12px 16px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  font-size: 14px !important;
  color: #374151 !important;
}

#navbarbttns #createDropdownMenu div:hover {
  background: #f3f4f6 !important;
  color: var(--primary-green) !important;
}

/* ===== TOP NAVBAR RESPONSIVE FIXES ===== */

/* Fix top navbar spacing on smaller screens */
@media (max-width: 1024px) {
  #navbar {
    height: 100px !important; /* Reduce height on smaller screens */
    padding: 0 16px !important;
    flex-wrap: nowrap !important;
  }
  
  #navbarimg {
    flex: 0 0 auto !important;
    margin-right: 12px !important;
  }
  
  #navbarimg img {
    height: 36px !important; /* Smaller logo */
  }
  
  #ClientSearch {
    flex: 1 1 200px !important;
    max-width: 300px !important;
    margin: 0 12px !important;
  }
  
  #ClientSearch input {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
  
  #navbarbttns {
    flex: 0 0 auto !important;
    gap: 8px !important;
  }
  
  #create-dropdown-container > button {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }
  
  .account-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 14px !important;
  }
  
  .account-btn .account-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }
  
  /* Ensure dropdown still works on smaller screens */
  #accountDropdown,
  .dropdown-menu {
    min-width: 180px !important;
    right: 0 !important;
  }
}

@media (max-width: 768px) {
  #navbar {
    height: 80px !important;
    padding: 0 12px !important;
  }
  
  #navbarimg img {
    height: 32px !important;
  }
  
  #ClientSearch {
    flex: 1 1 150px !important;
    max-width: 250px !important;
    margin: 0 8px !important;
  }
  
  #ClientSearch input {
    padding: 5px 10px !important;
    font-size: 13px !important;
  }
  
  #create-dropdown-container > button {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
  
  .account-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 13px !important;
  }
  
  .account-btn .account-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }
  
  .account-btn span {
    display: none !important; /* Hide username text on very small screens */
  }
  
  /* Smaller dropdown on mobile */
  #accountDropdown,
  .dropdown-menu {
    min-width: 160px !important;
    right: 0 !important;
  }
  
  .dropdown-item {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 600px) {
  #navbar {
    height: 70px !important;
    padding: 0 8px !important;
  }
  
  #navbarimg {
    margin-right: 8px !important;
  }
  
  #navbarimg img {
    height: 28px !important;
  }
  
  #ClientSearch {
    flex: 1 1 120px !important;
    max-width: 200px !important;
    margin: 0 6px !important;
  }
  
  #ClientSearch input {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }
  
  #create-dropdown-container > button {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
  }
  
  .account-btn {
    padding: 0.2rem 0.4rem !important;
  }
  
  .account-btn .account-avatar {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }
  
  /* Even smaller dropdown on tiny screens */
  #accountDropdown,
  .dropdown-menu {
    min-width: 140px !important;
    right: 0 !important;
    font-size: 12px !important;
  }
  
  .dropdown-item {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  
  .dropdown-header {
    padding: 12px 16px !important;
  }
  
  .dropdown-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
}

/* ===== RESPONSIVE NAVIGATION FIXES ===== */

/* Fix navigation bar spacing on smaller screens */
@media (max-width: 1024px) {
  /* Adjust sidebar for smaller screens */
  #sidebar {
    position: static;
    transform: none;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: auto !important;
    width: 100% !important;
    padding-top: 10px !important;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
  }
  
  #sidebar div {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  
  #sidebar a button {
    padding: 12px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    min-width: auto !important;
  }
  
  #rightsidepagecontainer {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    right: auto;
    padding: 16px !important;
  }
}

/* Additional mobile navigation improvements */
@media (max-width: 768px) {
  #sidebar a button {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  /* Add some breathing room for very small screens */
  #sidebar div:not(:last-child) {
    margin-right: 4px !important;
  }
}

@media (max-width: 600px) {
  #sidebar a button {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

/* ===== FIXED MOBILE ASSIGNMENT CSS - ADD TO clientlist.css ===== */

/* ===== ASSIGNMENT MODE IMPROVEMENTS ===== */

/* Assignment checkbox styling - make it more prominent */
#employeeAssignDiv {
  margin-bottom: 20px !important;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(45, 90, 61, 0.05)) !important;
  border: 2px solid rgba(45, 90, 61, 0.2) !important;
  border-radius: 12px !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.1) !important;
}

#employeeAssignDiv label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-weight: 600 !important;
  color: var(--primary-green) !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

#employeeAssignDiv input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

/* ===== ASSIGNMENT MODE INDICATOR ===== */
.assignment-mode-indicator {
  display: none !important;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)) !important;
  color: white !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3) !important;
}

.assignment-mode-indicator.active {
  display: block !important;
}

.assignment-mode-indicator::before {
  content: "👥 " !important;
}

/* ===== DESKTOP ASSIGNMENT COLUMN ===== */
@media (min-width: 769px) {
  .assign-cell {
    min-width: 200px !important;
    max-width: 250px !important;
    padding: 12px !important;
  }

  .assign-cell label {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    gap: 8px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
  }

  .assign-cell label:hover {
    background-color: rgba(45, 90, 61, 0.05) !important;
  }

  .assign-cell input[type="checkbox"] {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Keep table visible on desktop */
  .table-container {
    display: block !important;
  }

  .mobile-assignment-view {
    display: none !important;
  }
}

/* ===== MOBILE ASSIGNMENT MODE - FORCE MOBILE VIEW ===== */
@media (max-width: 768px) {
  /* ALWAYS hide table when in assignment mode on mobile */
  body .table-container.assignment-mode {
    display: none !important;
  }

  /* ALWAYS show mobile assignment view when in assignment mode */
  body .mobile-assignment-view.assignment-mode {
    display: block !important;
  }

  /* Regular mobile card view when NOT in assignment mode */
  body .mobile-card-view {
    display: block !important;
  }

  /* Hide mobile card view when in assignment mode */
  body .mobile-card-view.assignment-mode {
    display: none !important;
  }

  /* Assignment card styling */
  .assignment-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    border: 2px solid #f1f5f9 !important;
    transition: all 0.3s ease !important;
  }

  .assignment-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px) !important;
  }

  .assignment-card .client-info {
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
  }

  .assignment-card .client-name {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--primary-green) !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }

  .assignment-card .client-contact {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .assignment-card .client-contact:before {
    content: "📧" !important;
    font-size: 12px !important;
  }

  .assignment-card .client-contact:nth-child(3):before {
    content: "📞" !important;
  }

  .assignment-card .employees-section {
    margin-top: 20px !important;
  }

  .assignment-card .employees-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--primary-green) !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .assignment-card .employees-title::before {
    content: "👥" !important;
    font-size: 16px !important;
  }

  .assignment-card .employee-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }

  .assignment-card .employee-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }

  .assignment-card .employee-item:hover {
    background: #f1f5f9 !important;
    border-color: var(--primary-green) !important;
    transform: translateY(-1px) !important;
  }

  .assignment-card .employee-item.assigned {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(45, 90, 61, 0.05)) !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.15) !important;
  }

  .assignment-card .employee-item.assigned::after {
    content: "✓" !important;
    color: var(--primary-green) !important;
    font-weight: bold !important;
    margin-left: auto !important;
  }

  .assignment-card .employee-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    accent-color: var(--primary-green) !important;
  }

  .assignment-card .employee-item label {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    flex: 1 !important;
    color: #374151 !important;
  }

  .assignment-card .employee-item.assigned label {
    color: var(--primary-green) !important;
    font-weight: 600 !important;
  }

  .assignment-card .actions {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 2px solid #e2e8f0 !important;
    text-align: center !important;
  }

  .assignment-card .viewBtn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
  }

  .assignment-card .viewBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4) !important;
  }
}

/* ===== VERY SMALL MOBILE ASSIGNMENT ===== */
@media (max-width: 480px) {
  .assignment-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .assignment-card .employee-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .assignment-card .client-name {
    font-size: 20px !important;
  }

  .assignment-card .employees-title {
    font-size: 16px !important;
  }

  .assignment-card .employee-item {
    padding: 10px 12px !important;
  }

  .assignment-card .employee-item label {
    font-size: 14px !important;
  }
}

/* ===== ASSIGNMENT SUCCESS FEEDBACK ===== */
.assignment-feedback {
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
  background: var(--primary-green) !important;
  color: white !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  z-index: 10000 !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4) !important;
  font-size: 14px !important;
  max-width: 300px !important;
}

.assignment-feedback.show {
  transform: translateX(0) !important;
}

@media (max-width: 768px) {
  .assignment-feedback {
    top: 80px !important;
    right: 10px !important;
    left: 10px !important;
    text-align: center !important;
    max-width: none !important;
  }
}

/* ===== FORCE MOBILE VIEW DEBUG STYLES ===== */
@media (max-width: 768px) {
  /* Debug: Make sure these classes get applied */
  .mobile-assignment-view {
    background: #fafafa !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  .assignment-mode .mobile-assignment-view {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .assignment-mode .table-container {
    display: none !important;
    visibility: hidden !important;
  }
}
/* Additional CSS for Client Status System - Add this to your clientlist.css */

/* ===== CLIENT STATUS TOGGLE CONTROLS ===== */
.client-status-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(45, 90, 61, 0.05));
  border: 2px solid rgba(45, 90, 61, 0.2);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.1);
}

.client-status-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary-green);
  cursor: pointer;
  user-select: none;
  font-size: 16px;
}

.client-status-toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary-green);
  cursor: pointer;
}

/* ===== CLIENT STATISTICS ===== */
.client-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.client-stats .stats-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.client-stats .stats-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--primary-green);
}

.client-stats .stats-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
  display: block;
}

.client-stats .stats-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.status-badge.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

/* ===== INACTIVE CLIENT STYLING ===== */
/* Table rows for inactive clients */
#table-body tr.inactive {
  opacity: 0.7;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  border-left: 4px solid #ef4444;
  position: relative;
}

#table-body tr.inactive:hover {
  opacity: 0.85;
  background: linear-gradient(135deg, #f1f3f4 0%, #e9ecef 100%);
}

/* ===== ENHANCED ACTION BUTTONS ===== */
.activateBtn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 70px !important;
  font-size: 14px !important;
  flex: 0 0 auto !important;
}

.activateBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}

/* Update delete button to be deactivate button */
.deleteBtn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.deleteBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

/* ===== MOBILE CARD ENHANCEMENTS FOR STATUS ===== */
@media (max-width: 480px) {
  /* Inactive client cards */
  .client-card.inactive {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-left: 4px solid #ef4444;
  }

  /* Status badge in mobile cards */
  .client-card .name .status-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  /* Mobile card action buttons */
  .client-card .actions .activateBtn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    width: 70px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .client-card .actions .deleteBtn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
  }

  .client-card .actions button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  }

  /* Client stats mobile layout */
  .client-stats {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .client-stats .stats-item {
    padding: 12px 16px;
    min-width: auto;
  }

  .client-stats .stats-number {
    font-size: 1.5rem;
  }

  /* Status toggle mobile layout */
  .client-status-toggle-container {
    padding: 12px 16px;
    margin-bottom: 16px;
  }

  .client-status-toggle-label {
    font-size: 14px;
    gap: 8px;
  }

  .client-status-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}

/* ===== EMPTY STATE ENHANCEMENTS ===== */
.empty-state-filtered {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  padding: 40px 20px;
  margin: 20px 0;
  text-align: center;
}

.empty-state-filtered .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-filtered .empty-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #475569;
}

.empty-state-filtered .empty-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes statusChange {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.status-changing {
  animation: statusChange 0.3s ease;
}

/* Fade in animation for newly activated clients */
@keyframes fadeInActive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newly-active {
  animation: fadeInActive 0.5s ease;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }

  .client-stats .stats-item {
    padding: 12px 16px;
  }

  .client-stats .stats-number {
    font-size: 1.4rem;
  }

  .client-stats .stats-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .client-status-toggle-container {
    padding: 12px;
    margin-bottom: 12px;
  }

  .client-status-toggle-label {
    font-size: 14px;
  }

  .client-stats {
    gap: 8px;
    margin-bottom: 12px;
  }

  .client-stats .stats-item {
    padding: 10px 12px;
  }

  .client-stats .stats-number {
    font-size: 1.2rem;
  }

  .client-stats .stats-label {
    font-size: 0.7rem;
  }
}

/* ===== STATUS NOTIFICATION STYLES ===== */
.status-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-green);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  font-weight: 600;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.status-notification.show {
  transform: translateX(0);
}

.status-notification.success {
  background: #10b981;
}

.status-notification.error {
  background: #ef4444;
}

@media (max-width: 768px) {
  .status-notification {
    top: 80px;
    right: 10px;
    left: 10px;
    text-align: center;
    transform: translateY(-100%);
  }

  .status-notification.show {
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.activateBtn:focus,
.deleteBtn:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.client-status-toggle-label:focus-within {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .status-badge.active {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #10b981 !important;
  }

  .status-badge.inactive {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #ef4444 !important;
  }

  #table-body tr.inactive {
    border-left-width: 6px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .status-changing,
  .newly-active,
  .activateBtn,
  .deleteBtn,
  .client-stats .stats-item {
    animation: none !important;
    transition: none !important;
  }

  .activateBtn:hover,
  .deleteBtn:hover,
  .client-stats .stats-item:hover {
    transform: none !important;
  }
}
/* CSS FIX FOR BUTTON TEXT OVERFLOW - Add this to your CSS files */

/* ===== FIXED ACTION BUTTON SIZING ===== */

/* Table action buttons - ensure proper width for full text */
.viewBtn,
.deleteBtn,
.activateBtn {
  padding: 8px 16px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 85px !important; /* Increased from 70px to 85px */
  font-size: 14px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important; /* Prevent text wrapping */
 
  max-width: 120px !important; /* Set reasonable max width */
}

/* Mobile responsive button sizing */
@media (max-width: 768px) {
  .viewBtn,
  .deleteBtn,
  .activateBtn {
    padding: 8px 14px !important;
    min-width: 80px !important; /* Slightly smaller on mobile but still sufficient */
    font-size: 13px !important;
    max-width: 100px !important;
  }
}

@media (max-width: 480px) {
  .viewBtn,
  .deleteBtn,
  .activateBtn {
    padding: 8px 12px !important;
    min-width: 75px !important; /* Ensure "Deactivate" still fits on small screens */
    font-size: 12px !important;
    max-width: 90px !important;
  }
}

/* ===== MOBILE CARD VIEW BUTTON FIXES ===== */
@media (max-width: 480px) {
  /* Mobile card action buttons with proper sizing */
  .client-card .actions button {
    width: 80px !important; /* Increased from 70px */
    min-width: 80px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    
    overflow: hidden !important;
  }

  /* Employee card action buttons */
  .assignment-card .actions button,
  .employee-card .actions button {
    min-width: 80px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

/* ===== BUTTON CONTAINER IMPROVEMENTS ===== */
tbody td:last-child > div,
.action-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important; /* Prevent wrapping */
}

/* Ensure action cell has enough width */
thead th:nth-child(4), /* Actions column header */
tbody td:nth-child(4) { /* Actions column body */
  width: 25% !important; /* Increased from 20% */
  min-width: 180px !important; /* Increased from 160px */
  text-align: center !important;
}

/* ===== SPECIFIC BUTTON COLOR FIXES ===== */
.viewBtn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.deleteBtn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.activateBtn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* ===== HOVER EFFECTS ===== */
.viewBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
}

.deleteBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.activateBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}


/* ===== TABLE RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Ensure table doesn't get too cramped */
  #table, table {
    min-width: 650px !important; /* Increased minimum width */
  }
  
  /* Actions column gets more space on smaller screens */
  thead th:nth-child(4),
  tbody td:nth-child(4) {
    width: 30% !important;
    min-width: 200px !important;
  }
}

/* ===== DEBUGGING STYLES (Remove after testing) ===== */
/*
.viewBtn, .deleteBtn, .activateBtn {
  border: 1px solid red !important;
}
tbody td:nth-child(4) {
  border: 2px solid blue !important;
}
*/
/* CSS FIX FOR BUTTON TEXT OVERFLOW - Add this to your CSS files */

/* ===== FIXED ACTION BUTTON SIZING ===== */

/* Table action buttons - ensure proper width for full text */
.viewBtn,
.deleteBtn,
.activateBtn {

  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 100px !important; /* Increased to fit "Deactivate" comfortably */
  font-size: 14px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important; /* Prevent text wrapping */
}

/* Mobile responsive button sizing */
@media (max-width: 768px) {
  .viewBtn,
  .deleteBtn,
  .activateBtn {
    padding: 9px 18px !important;
    min-width: 95px !important; /* Sufficient space for "Deactivate" */
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .viewBtn,
  .deleteBtn,
  .activateBtn {
    padding: 8px 16px !important;
    min-width: 90px !important; /* Ensure "Deactivate" fits on mobile */
    font-size: 12px !important;
  }
}

/* ===== MOBILE CARD VIEW BUTTON FIXES ===== */
@media (max-width: 480px) {
  /* Mobile card action buttons with proper sizing */
  .client-card .actions button {
    width: 90px !important; /* Increased to fit "Deactivate" */
    min-width: 90px !important;
   
    font-size: 12px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
  }

  /* Employee card action buttons */
  .assignment-card .actions button,
  .employee-card .actions button {
    min-width: 90px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

/* ===== BUTTON CONTAINER IMPROVEMENTS ===== */
tbody td:last-child > div,
.action-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important; /* Prevent wrapping */
}

/* Ensure action cell has enough width */
thead th:nth-child(4), /* Actions column header */
tbody td:nth-child(4) { /* Actions column body */
  width: 30% !important; /* Increased to give more space for buttons */
  min-width: 220px !important; /* Increased to accommodate larger buttons */
  text-align: center !important;
}

/* ===== SPECIFIC BUTTON COLOR FIXES ===== */
.viewBtn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.deleteBtn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.activateBtn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* ===== HOVER EFFECTS ===== */
.viewBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
}

.deleteBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.activateBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

/* ===== TABLE RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Ensure table doesn't get too cramped */
  #table, table {
    min-width: 700px !important; /* Increased to accommodate larger buttons */
  }
  
  /* Actions column gets more space on smaller screens */
  thead th:nth-child(4),
  tbody td:nth-child(4) {
    width: 35% !important;
    min-width: 240px !important;
  }
}

/* ===== ASSIGNMENT MODE MOBILE FIX ===== */
@media (max-width: 768px) {
  .mobile-card-view.assignment-mode {
    display: block !important;
  }
  .table-container.assignment-mode {
    display: none !important;
  }
}
