* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.role-selection {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.role-option {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.role-option:hover {
  background: #e9ecef;
  border-color: #667eea;
}

.role-option.selected {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

.message.success {
  background: #d4edda;
  color: #155724;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
}

.message.info {
  background: #cce7ff;
  color: #004085;
}

.hidden {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: white;
  padding: 25px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #00856f;
}

.header h1 {
  color: #2d3748;
  font-size: 28px;
  font-weight: 600;
}

.header .subtitle {
  color: #718096;
  font-size: 14px;
  margin-top: 5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-details {
  text-align: right;
}

.user-role {
  background: linear-gradient(135deg, #00856f 0%, #00b894 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 133, 111, 0.3);
}

.btn-logout {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.main-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border-left: 4px solid #00856f;
}

.section-title {
  color: #2d3748;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #d2f6ee;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #00856f 0%, #00b894 100%);
  border-radius: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  padding-left: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f7fafc;
  font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00856f;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 133, 111, 0.1);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00856f 0%, #00b894 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 133, 111, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 133, 111, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 128, 150, 0.6);
}

.message {
  padding: 15px 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: none;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #d2f6ee 0%, #b8f2e6 100%);
  color: #00856f;
  border-left-color: #00856f;
}

.message.error {
  background: linear-gradient(135deg, #fed7d7 0%, #fecaca 100%);
  color: #742a2a;
  border-left-color: #e53e3e;
}

.duplicate-details {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  font-size: 14px;
}

.duplicate-details h4 {
  margin: 0 0 10px 0;
  color: #856404;
}

.duplicate-details p {
  margin: 5px 0;
  color: #856404;
}

.selected-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.selected-table thead {
  background: linear-gradient(135deg, #d2f6ee 0%, #a8e6d7 100%);
  color: #00856f;
}

.selected-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid #00856f;
}

.selected-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 14px;
  text-align: left;
}

.selected-table tbody tr {
  transition: all 0.2s ease;
}

.selected-table tbody tr:hover {
  background: #f0f9f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #00856f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.access-denied {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 500px;
}

.access-denied h2 {
  color: #e53e3e;
  font-size: 24px;
  margin-bottom: 20px;
}

.access-denied p {
  color: #718096;
  margin-bottom: 30px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .main-card {
    padding: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.btn-export {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  background: white;
  padding: 25px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #e53e3e;
}

.header h1 {
  color: #2d3748;
  font-size: 28px;
  font-weight: 600;
}

.header .subtitle {
  color: #718096;
  font-size: 14px;
  margin-top: 5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.user-role {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.user-departments {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
  transition: all 0.3s ease;
}

.user-departments:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

.btn-logout {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4);
}

.btn-export {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

/* Main Card */
.main-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border-left: 4px solid #e53e3e;
}

.section-title {
  color: #2d3748;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #fed7d7;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  border-radius: 2px;
}

/* Department Selector */
.department-selector-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #feb2b2;
}

.department-selector-title {
  color: #742a2a;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.department-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.department-checkbox-group {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #fed7d7;
  transition: all 0.3s ease;
}

.department-checkbox-group:hover {
  border-color: #e53e3e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
}

.department-checkbox-group h4 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

.department-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  cursor: pointer;
}

.department-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.department-checkbox-item label {
  cursor: pointer;
  color: #4a5568;
  font-size: 13px;
  font-weight: 500;
}

.department-checkbox-item input[type="checkbox"]:checked + label {
  color: #e53e3e;
  font-weight: 600;
}

.department-selector-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-select-all,
.btn-deselect-all {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn-select-all {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
}

.btn-deselect-all {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
}

.btn-select-all:hover,
.btn-deselect-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Search & Filter */
.search-filter-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #e2e8f0;
}

.filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  padding-left: 5px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.search-stats {
  color: #718096;
  font-size: 14px;
  margin-top: 10px;
  font-style: italic;
}

/* Table Styles */
.selected-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.selected-table thead {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  color: #742a2a;
}

.selected-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid #e53e3e;
}

.selected-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 14px;
  text-align: left;
}

.selected-table tbody tr {
  transition: all 0.2s ease;
}

.selected-table tbody tr:hover {
  background: #fef5f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn {
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00856f 0%, #00b894 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 133, 111, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 133, 111, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 128, 150, 0.6);
}

/* Action Buttons */
.action-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  margin: 0 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-edit {
  background: linear-gradient(135deg, #ffd33d 0%, #ffc107 100%);
  color: #2d2d2d;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.action-delete {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.action-approve {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

.action-reject {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-reject:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.status-pending {
  background: #fef5e7;
  color: #d69e2e;
  border: 1px solid #faf0ca;
}

.status-approved {
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #c6f6d5;
}

.status-rejected {
  background: #fed7d7;
  color: #e53e3e;
  border: 1px solid #feb2b2;
}

/* Messages */
.message {
  padding: 15px 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: none;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

.form-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin: 15px 0;
  display: none;
  font-weight: 500;
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success,
.form-message.success {
  background: linear-gradient(135deg, #d2f6ee 0%, #b8f2e6 100%);
  color: #00856f;
  border-left-color: #00856f;
}

.message.error,
.form-message.error {
  background: linear-gradient(135deg, #fed7d7 0%, #fecaca 100%);
  color: #742a2a;
  border-left-color: #e53e3e;
}

/* Loading & Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #e53e3e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  border-left: 4px solid #e53e3e;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
}

.close:hover {
  color: #000;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

/* Delete Confirm Modal */
.delete-confirm-modal .modal-content {
  max-width: 500px;
  text-align: center;
}

.delete-confirm-modal h3 {
  color: #e53e3e;
  margin-bottom: 15px;
  font-size: 20px;
}

.delete-confirm-modal p {
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.5;
}

.delete-confirm-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
}

/* Review Modal */
.review-modal .modal-content {
  max-width: 500px;
}

.review-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .main-card {
    padding: 25px;
  }

  .btn-group {
    flex-direction: column;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .department-selector-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 95%;
  }

  .delete-confirm-buttons,
  .review-buttons {
    flex-direction: column;
  }

  .user-departments {
    max-width: 200px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .selected-table {
    font-size: 12px;
  }

  .selected-table th,
  .selected-table td {
    padding: 8px 6px;
  }
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

.header {
  background: white;
  padding: 25px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #805ad5;
}

.header h1 {
  color: #2d3748;
  font-size: 28px;
  font-weight: 600;
}

.header .subtitle {
  color: #718096;
  font-size: 14px;
  margin-top: 5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.user-role {
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(128, 90, 213, 0.3);
}

.btn-logout {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4);
}

.btn-export {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

/* Main Card */
.main-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  border-left: 4px solid #805ad5;
}

.section-title {
  color: #2d3748;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #e9d8fd;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  border-radius: 2px;
}

/* Search & Filter */
.search-filter-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #e2e8f0;
}

.filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  padding-left: 5px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #805ad5;
  box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
}

.search-stats {
  color: #718096;
  font-size: 14px;
  margin-top: 10px;
  font-style: italic;
}

/* Table Styles */
.selected-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.selected-table thead {
  background: linear-gradient(135deg, #e9d8fd 0%, #d6bcfa 100%);
  color: #553c9a;
}

.selected-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid #805ad5;
}

.selected-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 14px;
  text-align: left;
}

.selected-table tbody tr {
  transition: all 0.2s ease;
}

.selected-table tbody tr:hover {
  background: #faf5ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.status-pending {
  background: #fef5e7;
  color: #d69e2e;
  border: 1px solid #faf0ca;
}

.status-approved {
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #c6f6d5;
}

.status-rejected {
  background: #fed7d7;
  color: #e53e3e;
  border: 1px solid #feb2b2;
}

/* Company Summary */
.company-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 10px;
}

.company-tab {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.company-tab:hover {
  background: #805ad5;
  color: white;
  border-color: #805ad5;
  transform: translateY(-2px);
}

.company-tab.active {
  background: #805ad5;
  color: white;
  border-color: #805ad5;
  box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

/* Summary Tables */
.summary-section {
  margin: 25px 0;
}

.summary-section h4 {
  color: #2d3748;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-container {
  overflow-x: auto;
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.summary-table thead {
  background: linear-gradient(135deg, #e9d8fd 0%, #d6bcfa 100%);
  color: #553c9a;
}

.summary-table tbody tr:nth-child(even) {
  background: #faf5ff;
}

.summary-table tbody tr td {
  color: #2d3748;
  font-weight: 500;
}

/* Đã sửa màu chữ cho dễ đọc */
.summary-table tfoot {
  background: linear-gradient(135deg, #d6bcfa 0%, #b794f4 100%);
  color: #553c9a;
  font-weight: 700;
}

/* Export Section */
.export-section {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-radius: 15px;
  margin-top: 30px;
  border-left: 4px solid #38a169;
}

.export-section h3 {
  color: #2f855a;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.export-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.btn-export-all {
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(128, 90, 213, 0.4);
}

.btn-export-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 90, 213, 0.6);
}

.btn-export-company {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.btn-export-company:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(49, 130, 206, 0.6);
}

/* Messages */
.message {
  padding: 15px 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: none;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #d2f6ee 0%, #b8f2e6 100%);
  color: #00856f;
  border-left-color: #00856f;
}

.message.error {
  background: linear-gradient(135deg, #fed7d7 0%, #fecaca 100%);
  color: #742a2a;
  border-left-color: #e53e3e;
}

/* Loading & Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #805ad5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 500px;
}

.access-denied h2 {
  color: #e53e3e;
  font-size: 24px;
  margin-bottom: 20px;
}

.access-denied p {
  color: #718096;
  margin-bottom: 30px;
  font-size: 16px;
}

/* Two Column Layout */
.two-column-layout {
  /* display: grid; */
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.summary-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .main-card {
    padding: 20px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .export-buttons {
    flex-direction: column;
  }

  .company-tabs {
    flex-direction: column;
  }

  .company-tab {
    text-align: center;
  }

  .selected-table,
  .summary-table {
    font-size: 12px;
  }

  .selected-table th,
  .selected-table td,
  .summary-table th,
  .summary-table td {
    padding: 8px 6px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  border-left: 4px solid #e53e3e;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
}

.close:hover {
  color: #000;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

/* Action Buttons */
.action-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  margin: 0 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-edit {
  background: linear-gradient(135deg, #ffd33d 0%, #ffc107 100%);
  color: #2d2d2d;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.action-delete {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.action-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn {
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00856f 0%, #00b894 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 133, 111, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 133, 111, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 128, 150, 0.6);
}

/* Delete Confirm Modal */
.delete-confirm-modal .modal-content {
  max-width: 500px;
  text-align: center;
}

.delete-confirm-modal h3 {
  color: #e53e3e;
  margin-bottom: 15px;
  font-size: 20px;
}

.delete-confirm-modal p {
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.5;
}

.delete-confirm-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
}
