/* Modern Employee Management Styles */

.employee-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    animation: fadeInUp 0.5s ease;
}

.employee-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.employee-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.employee-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white !important;
}

.employee-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 8px 0 0 0;
    position: relative;
    z-index: 1;
}

/* Add Employee Section */
.add-employee-section {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.toggle-form-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.toggle-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 61, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Modern Employee Form */
.modern-employee-form {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border: 2px solid #e2e8f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.save-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 61, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
}

/* Table Section */
.table-section {
    padding: 24px 32px;
}

.employee-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stats-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Modern Employee Table */
.modern-employee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modern-employee-table thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
    color: white !important;
}

.modern-employee-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
    color: white !important;
}

.modern-employee-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green-light), var(--primary-blue));
}

.modern-employee-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.modern-employee-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modern-employee-table td {
    padding: 20px 24px;
    border: none;
    vertical-align: middle;
    color: #334155;
    font-size: 0.95rem;
}

/* Employee Info Styling */
.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.employee-details h4 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.employee-details p {
    margin: 2px 0 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.role-badge.manager {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

.role-badge.employee {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.role-badge.counselor {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.edit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.save-edit-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.cancel-edit-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.cancel-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.4);
}

/* Edit Mode Inputs */
.edit-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.edit-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.edit-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 32px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .employee-container {
        margin: 10px;
        border-radius: 12px;
    }

    .employee-header {
        padding: 24px 20px;
    }

    .employee-title {
        font-size: 2rem;
    }

    .add-employee-section,
    .table-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modern-employee-table th,
    .modern-employee-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .employee-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .employee-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Legacy compatibility styles */
#employeesTable { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1em; 
}

#employeesTable th, 
#employeesTable td { 
    border: 1px solid #888; 
    padding: 8px; 
}

#employeesTable th { 
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%) !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Additional fallback for table headers */
table thead,
table th,
.modern-employee-table thead,
.modern-employee-table th {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%) !important;
    background-color: #2d5a3d !important;
    color: white !important;
}

.action-btn { 
    margin-right: 5px; 
    padding: 4px 8px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

.editBtn { 
    background: #4CAF50; 
    color: #fff; 
}

.deleteBtn { 
    background: #f44336; 
    color: #fff; 
}
/* CORRECTED MOBILE RESPONSIVE FIX - Replace the mobile section in admin.css */

/* Mobile Responsiveness - Transform Table to Cards */
@media (max-width: 768px) {
  .employee-container {
    margin: 10px 5px;
    border-radius: 12px;
  }

  .employee-header {
    padding: 20px 16px;
  }

  .employee-title {
    font-size: 1.8rem;
  }

  .add-employee-section,
  .table-section {
    padding: 16px 12px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* TRANSFORM TABLE TO CARDS ON MOBILE */
  .table-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  /* Hide table headers on mobile */
  .modern-employee-table thead {
    display: none;
  }

  /* Transform table structure */
  .modern-employee-table {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .modern-employee-table tbody {
    display: block;
  }

  .modern-employee-table tbody tr {
    display: block !important;
    background: white;
    border: none !important;
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
  }

  .modern-employee-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: white;
  }

  .modern-employee-table tbody td {
    display: block !important;
    border: none !important;
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
    position: relative;
  }

  .modern-employee-table tbody td:last-child {
    padding-bottom: 0 !important;
  }

  /* Add labels before each section */
  .modern-employee-table tbody td:nth-child(1)::before {
    content: "👤 Employee";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
  }

  .modern-employee-table tbody td:nth-child(2) {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
  }

  .modern-employee-table tbody td:nth-child(2)::before {
    content: "📧 Contact Information";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .modern-employee-table tbody td:nth-child(3) {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
  }

  .modern-employee-table tbody td:nth-child(3)::before {
    content: "🏷️ Role";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .modern-employee-table tbody td:nth-child(4)::before {
    content: "⚙️ Actions";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  /* Employee info mobile styling */
  .employee-info {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .employee-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .employee-details h4 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    color: #1e293b;
  }

  .employee-details p {
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    color: #64748b;
  }

  /* Contact info mobile styling */
  .emp-email {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
  }

  /* Role badge mobile styling */
  .role-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
  }

  /* Action buttons mobile styling */
  .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 12px;
    justify-content: center;
  }

  /* Edit mode styling for mobile cards */
  .edit-input,
  .edit-select {
    width: 100%;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-top: 4px;
  }

  .edit-input:focus,
  .edit-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
  }

  /* Form elements mobile */
  .toggle-form-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1rem;
  }

  .modern-employee-form {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .save-btn,
  .cancel-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1rem;
  }

  /* Employee stats mobile */
  .employee-stats {
    justify-content: center;
    margin-bottom: 20px;
  }

  .stats-number {
    font-size: 1.8rem;
  }

  .stats-label {
    font-size: 0.8rem;
  }

  /* Empty state mobile */
  .empty-state {
    padding: 60px 20px;
    text-align: center;
  }

  .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
  }

  .empty-state-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .employee-container {
    margin: 5px 2px;
  }

  .employee-header {
    padding: 16px 12px;
  }

  .employee-title {
    font-size: 1.6rem;
  }

  .add-employee-section,
  .table-section {
    padding: 12px 8px;
  }

  .modern-employee-table tbody tr {
    padding: 16px;
    margin-bottom: 12px;
  }

  .employee-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .employee-details h4 {
    font-size: 1rem;
  }

  .action-btn {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .stats-number {
    font-size: 1.5rem;
  }
}

/* Keep table layout on larger screens */
@media (min-width: 769px) {
  .modern-employee-table {
    display: table;
  }
  
  .modern-employee-table thead {
    display: table-header-group;
  }
  
  .modern-employee-table tbody {
    display: table-row-group;
  }
  
  .modern-employee-table tbody tr {
    display: table-row;
  }
  
  .modern-employee-table tbody td {
    display: table-cell;
  }
}
/* Additional styles for Active/Inactive Status System - Add this to your admin.css */

/* Status Toggle Controls */
.status-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.status-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-green);
  cursor: pointer;
  user-select: none;
}

.status-toggle-label input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--primary-green);
  cursor: pointer;
}

/* Enhanced Employee Stats */
.employee-stats.detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 500px;
}

.employee-stats .stats-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.employee-stats .stats-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--primary-green);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Inactive Employee Row Styling */
.modern-employee-table tbody tr.inactive {
  opacity: 0.7;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  position: relative;
}

.modern-employee-table tbody tr.inactive::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border-radius: 0 4px 4px 0;
}

.modern-employee-table tbody tr.inactive:hover {
  opacity: 0.85;
  background: linear-gradient(135deg, #f1f3f4 0%, #e9ecef 100%);
}

/* Enhanced Action Buttons */
.activate-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.activate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}

.deactivate-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.deactivate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

/* Update delete button to be deactivate button */
.delete-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

/* Protected Account Styling */
.action-btn[disabled] {
  background: linear-gradient(135deg, #64748b, #475569) !important;
  color: white !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
}

.action-btn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Status Indicator in Employee Details */
.employee-details .status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

.employee-details .status-indicator.active {
  color: #059669;
}

.employee-details .status-indicator.inactive {
  color: #dc2626;
}

.employee-details .status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.employee-details .status-indicator.inactive::before {
  animation: none;
  opacity: 0.7;
}

/* Enhanced Empty State for Filtered Views */
.empty-state.filtered {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  padding: 40px 20px;
  margin: 20px 0;
}

.empty-state.filtered .empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state.filtered .empty-state-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #475569;
}

.empty-state.filtered p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* Pulse Animation for Active Status */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Enhanced Mobile Responsiveness for Status Features */
@media (max-width: 768px) {
  .status-toggle-container {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
  }

  .employee-stats.detailed {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .modern-employee-table tbody tr.inactive::before {
    width: 3px;
  }

  /* Status indicator in mobile card view */
  .modern-employee-table tbody td:nth-child(1)::after {
    content: attr(data-status);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    width: fit-content;
  }

  .modern-employee-table tbody tr.inactive td:nth-child(1)::after {
    background: #fee2e2;
    color: #dc2626;
  }

  .modern-employee-table tbody tr:not(.inactive) td:nth-child(1)::after {
    background: #dcfce7;
    color: #059669;
  }
}

/* Additional utility classes */
.text-active {
  color: #059669 !important;
  font-weight: 600;
}

.text-inactive {
  color: #dc2626 !important;
  font-weight: 600;
}

.bg-active {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
}

.bg-inactive {
  background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
}

/* Status change confirmation modal (if you want to add one later) */
.status-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.status-confirmation-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.status-confirmation-content h3 {
  margin: 0 0 16px 0;
  color: #1e293b;
}

.status-confirmation-content p {
  margin: 0 0 20px 0;
  color: #64748b;
  line-height: 1.5;
}

.status-confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.status-confirmation-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.status-confirmation-btn.confirm {
  background: var(--primary-green);
  color: white;
}

.status-confirmation-btn.cancel {
  background: #e2e8f0;
  color: #64748b;
}

.status-confirmation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}