/* ========================================
   ENHANCED ADMIN SIDEBAR STYLES
   ======================================== */

/* Brand Logo Section */
.enhanced-sidebar .brand-link-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 15px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.enhanced-sidebar .brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.enhanced-sidebar .brand-link:hover {
  transform: translateY(-2px);
}

.enhanced-sidebar .brand-image-custom {
  max-width: 60px;
  max-height: 60px;
  margin-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.enhanced-sidebar .brand-link:hover .brand-image-custom {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.enhanced-sidebar .brand-text {
  color: #ffffff !important;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sidebar User Profile */
.enhanced-sidebar .sidebar-user-panel {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 20px 15px;
  margin-bottom: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.enhanced-sidebar .user-panel-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.enhanced-sidebar .image-wrapper {
  position: relative;
}

.enhanced-sidebar .user-profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.enhanced-sidebar .user-profile-img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.enhanced-sidebar .status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0);
  }
}

.enhanced-sidebar .user-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.enhanced-sidebar .user-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.enhanced-sidebar .info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Enhanced Sidebar Background */
.enhanced-sidebar {
  background: linear-gradient(180deg, #1a2332 0%, #151e2d 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure sidebar has proper width */
.enhanced-sidebar .sidebar {
  margin-top: -20px;
  padding-bottom: 20px;
  margin-bottom: 50px;
}

/* Navigation Items */
.enhanced-sidebar .nav-sidebar .nav-item .nav-link {
  border-radius: 8px;
  margin: 3px 10px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  white-space: normal;
  word-wrap: break-word;
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link p {
  margin: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link:hover::before,
.enhanced-sidebar .nav-sidebar .nav-item .nav-link.active::before {
  transform: scaleY(1);
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link:hover {
  background: rgba(102, 126, 234, 0.15);
  padding-left: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link .nav-icon {
  font-size: 1.05rem;
  min-width: 28px;
  width: 28px;
  text-align: center;
  margin-right: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link:hover .nav-icon {
  transform: scale(1.1);
}

/* Tree View Items */
.enhanced-sidebar .nav-treeview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 5px 10px;
  padding: 5px 0;
}

.enhanced-sidebar .nav-treeview .nav-link {
  padding-left: 50px !important;
  padding-right: 15px !important;
  font-size: 0.9rem;
  white-space: normal;
  word-wrap: break-word;
}

.enhanced-sidebar .nav-treeview .nav-link .nav-icon {
  font-size: 0.65rem;
  opacity: 0.7;
  min-width: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Section Headers */
.enhanced-sidebar .nav-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 15px 20px 8px;
  margin-top: 10px;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  overflow: visible;
}

.enhanced-sidebar .nav-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
}

/* ========================================
   ENHANCED SCROLLBAR STYLING
   ======================================== */

/* Scrollbar Width - Applied to entire sidebar */
.enhanced-sidebar::-webkit-scrollbar {
  width: 10px;
}

/* Scrollbar Track (Background) */
.enhanced-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 10px 0;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Thumb (Draggable part) */
.enhanced-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

/* Scrollbar Thumb Hover State */
.enhanced-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7b91ff 0%, #8b5bc2 100%);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.6);
  transform: scaleX(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Scrollbar Thumb Active State */
.enhanced-sidebar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #5566d6 0%, #6a3c8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.8), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Corner (when both scrollbars are present) */
.enhanced-sidebar::-webkit-scrollbar-corner {
  background: transparent;
}

/* Add subtle glow animation to scrollbar thumb */
@keyframes scrollbar-glow {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.6);
  }
}

.enhanced-sidebar::-webkit-scrollbar-thumb {
  animation: scrollbar-glow 3s ease-in-out infinite;
}

.enhanced-sidebar::-webkit-scrollbar-thumb:hover {
  animation: none;
}

/* Firefox Scrollbar Styling */
.enhanced-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #667eea rgba(0, 0, 0, 0.2);
  scroll-behavior: smooth;
}

/* Auto-hide scrollbar on desktop - show on hover */
@media (min-width: 769px) {
  .enhanced-sidebar::-webkit-scrollbar-thumb {
    opacity: 0.7;
  }
  
  .enhanced-sidebar:hover::-webkit-scrollbar-thumb {
    opacity: 1;
  }
}

/* Dropdown Arrow Animation */
.enhanced-sidebar .nav-sidebar .nav-item .nav-link .right {
  transition: transform 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.enhanced-sidebar .nav-sidebar .nav-item.menu-open > .nav-link .right {
  transform: rotate(-90deg);
}

/* Fix for dropdown items with arrows */
.enhanced-sidebar .nav-sidebar .nav-item.dropdown .nav-link p {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .enhanced-sidebar .brand-image-custom {
    max-width: 45px;
    max-height: 45px;
  }
  
  .enhanced-sidebar .brand-text {
    font-size: 1rem;
  }
  
  .enhanced-sidebar .user-profile-img {
    width: 40px;
    height: 40px;
  }
}

/* Hover Effects for Better UX */
.enhanced-sidebar .nav-sidebar .nav-item .nav-link p {
  transition: all 0.3s ease;
}

.enhanced-sidebar .nav-sidebar .nav-item .nav-link:hover p {
  color: #ffffff;
}

/* Active State Glow Effect */
.enhanced-sidebar .nav-sidebar .nav-item .nav-link.active {
  animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  }
}

/* ========================================
   ADMIN HOME ENHANCEMENTS
   ======================================== */

.admin-home-hero {
  background: linear-gradient(135deg, rgba(102,126,234,.08), rgba(118,75,162,.08));
  border: 1px solid rgba(102,126,234,.15);
}

.admin-home-hero .hero-title {
  font-weight: 700;
}

.admin-home-hero .hero-subtitle {
  color: #6c757d;
}

.admin-home-hero .badge {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.enhanced-box {
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.08) !important;
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.enhanced-box .inner h3,
.enhanced-box .inner p {
  color: #fff !important;
}

.enhanced-box .small-box-footer {
  color: rgba(255,255,255,.9) !important;
}

.enhanced-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}

.gradient-blue { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.gradient-purple { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.gradient-teal { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gradient-orange { background: linear-gradient(135deg, #f7971e, #ffd200); }
.gradient-green { background: linear-gradient(135deg, #56ab2f, #a8e063); }

.quick-actions .btn i { opacity: .9; }
.quick-actions .btn:hover i { transform: translateX(2px); }

/* ========================================
   ENHANCED DEPARTMENT LIST STYLES
   ======================================== */

/* Page Header Styles */
.department-page-header {
  background: linear-gradient(135deg, rgba(102,126,234,.05), rgba(118,75,162,.05));
  border-radius: 12px;
  padding: 25px 30px;
  border: 1px solid rgba(102,126,234,.1);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  display: flex;
  align-items: center;
}

.page-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 8px;
}

.action-buttons .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

/* Search and Filter Section */
.search-filter-section .card {
  border-radius: 12px;
  background: #ffffff;
}

.search-box .input-group-text {
  border-radius: 8px 0 0 8px;
  border-color: #e9ecef;
  background: #f8f9fa;
}

.search-box .form-control {
  border-radius: 0 8px 8px 0;
  border-color: #e9ecef;
  border-left: none;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.search-box .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-options .form-select {
  border-radius: 8px;
  border-color: #e9ecef;
  padding: 8px 12px;
  font-size: 0.9rem;
  min-width: 200px;
}

/* Main Card Styles */
.department-list-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: all 0.3s ease;
}

.department-list-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.department-list-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 20px 25px;
}

.department-list-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.department-list-card .badge {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Table Styles */
.department-list-card .table {
  margin: 0;
  font-size: 0.95rem;
}

.department-list-card .table thead th {
  background: #f8f9fa;
  border: none;
  padding: 15px 20px;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.department-list-card .table tbody td {
  padding: 20px;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.department-list-card .table tbody tr:hover {
  background: linear-gradient(135deg, rgba(102,126,234,.05), rgba(118,75,162,.05));
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.department-list-card .table tbody tr:last-child td {
  border-bottom: none;
}

/* Department Info Styles */
.department-info h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.department-info small {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.description-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #495057;
  margin: 0;
}

.description-text .text-muted {
  font-style: italic;
  font-size: 0.9rem;
}

/* Action Buttons */
.btn-group .btn {
  border-radius: 6px;
  margin: 0 2px;
  padding: 6px 10px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border-width: 1px;
}

.btn-group .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.btn-group .btn-outline-primary:hover {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.btn-group .btn-outline-info:hover {
  background: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.btn-group .btn-outline-danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* Badge Styles */
.badge.bg-light {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
  color: #495057 !important;
  border: 1px solid #dee2e6 !important;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Loading State */
.loading-state {
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.loading-state .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Empty State */
.empty-state {
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.empty-state .empty-icon {
  opacity: 0.6;
}

.empty-state h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .department-page-header {
    padding: 20px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .action-buttons {
    margin-top: 15px;
  }
  
  .action-buttons .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .search-filter-section .card-body {
    padding: 20px;
  }
  
  .search-box .form-control {
    padding: 10px 14px;
  }
  
  .filter-options .form-select {
    min-width: 150px;
    font-size: 0.85rem;
  }
  
  .department-list-card .table thead th {
    padding: 12px 15px;
    font-size: 0.8rem;
  }
  
  .department-list-card .table tbody td {
    padding: 15px;
  }
  
  .department-info h6 {
    font-size: 1rem;
  }
  
  .btn-group .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .department-page-header {
    padding: 15px;
  }
  
  .page-title {
    font-size: 1.25rem;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
  }
  
  .search-filter-section .row {
    flex-direction: column;
  }
  
  .search-filter-section .col-md-6:last-child {
    text-align: left !important;
    margin-top: 15px;
  }
  
  .filter-options .form-select {
    width: 100% !important;
    min-width: auto;
  }
  
  .department-list-card .table-responsive {
    font-size: 0.85rem;
  }
  
  .department-list-card .table thead th {
    padding: 10px 12px;
  }
  
  .department-list-card .table tbody td {
    padding: 12px;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 5px;
  }
  
  .btn-group .btn {
    margin: 0;
    width: 100%;
  }
}

/* Animation Enhancements */
.department-row {
  transition: all 0.3s ease;
}

.department-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Custom Scrollbar for Table */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* DataTable Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin: 15px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px;
  margin: 0 2px;
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* ========================================
   ENHANCED DEPARTMENT MODAL STYLES
   ======================================== */

/* Modal Container */
.department-modal-container {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: modalSlideIn 0.3s ease-out;
}

.department-modal-container.closing {
  animation: modalSlideOut 0.3s ease-in;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

/* Enhanced Modal Header */
.modal-header-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px 30px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.header-text .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.header-text .modal-subtitle {
  font-size: 0.9rem;
  margin: 5px 0 0 0;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}

.header-actions .btn-close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-actions .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Enhanced Modal Body */
.modal-body-enhanced {
  padding: 30px;
  background: #ffffff;
}

.department-form {
  max-width: 100%;
}

/* Form Fields Container */
.form-fields-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Form Field Groups */
.form-field-group {
  opacity: 1;
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Form Labels */
.form-label-enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-label-icon {
  color: #667eea;
  font-size: 0.9rem;
}

.required-indicator {
  color: #e74c3c;
  font-weight: 700;
}

/* Enhanced Input Groups */
.input-group-enhanced {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.input-group-enhanced.focused {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group-enhanced.success {
  border-color: #28a745;
  background: #ffffff;
}

.input-group-enhanced.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.input-icon {
  padding: 0 15px;
  color: #6c757d;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group-enhanced.focused .input-icon {
  color: #667eea;
}

.input-group-enhanced.success .input-icon {
  color: #28a745;
}

.input-group-enhanced.error .input-icon {
  color: #dc3545;
}

.form-control-enhanced {
  flex: 1;
  border: none;
  background: transparent;
  padding: 15px 15px 15px 0;
  font-size: 1rem;
  color: #2c3e50;
  outline: none;
  transition: all 0.3s ease;
}

.form-control-enhanced::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.form-control-enhanced:focus {
  box-shadow: none;
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.input-group-enhanced.focused .input-focus-line {
  transform: scaleX(1);
}

/* Enhanced Textarea Groups */
.textarea-group-enhanced {
  position: relative;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.textarea-group-enhanced.focused {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.textarea-group-enhanced.success {
  border-color: #28a745;
  background: #ffffff;
}

.textarea-group-enhanced.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.textarea-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #6c757d;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.textarea-group-enhanced.focused .textarea-icon {
  color: #667eea;
}

.textarea-group-enhanced.success .textarea-icon {
  color: #28a745;
}

.textarea-group-enhanced.error .textarea-icon {
  color: #dc3545;
}

.textarea-enhanced {
  width: 100%;
  border: none;
  background: transparent;
  padding: 15px 15px 15px 45px;
  font-size: 1rem;
  color: #2c3e50;
  outline: none;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

.textarea-enhanced::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.textarea-enhanced:focus {
  box-shadow: none;
}

.textarea-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.textarea-group-enhanced.focused .textarea-focus-line {
  transform: scaleX(1);
}

/* Field Help Text */
.field-help {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

.field-help i {
  font-size: 0.8rem;
}

/* Character Counter */
.character-count {
  text-align: right;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #6c757d;
}

.character-count .text-warning {
  color: #ffc107;
  font-weight: 600;
}

.character-count .text-danger {
  color: #dc3545;
  font-weight: 700;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.btn-cancel {
  background: #6c757d;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  color: white;
}

.btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit.loading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-submit.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Alert Container */
.alert-container {
  margin-bottom: 20px;
}

.alert-enhanced {
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-icon {
  font-size: 1.1rem;
}

.alert-message {
  font-weight: 500;
}

.btn-close-alert {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-alert:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-header-enhanced {
    padding: 20px;
  }
  
  .header-content {
    gap: 12px;
  }
  
  .header-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .header-text .modal-title {
    font-size: 1.3rem;
  }
  
  .header-text .modal-subtitle {
    font-size: 0.85rem;
  }
  
  .modal-body-enhanced {
    padding: 20px;
  }
  
  .form-fields-container {
    gap: 20px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-cancel,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .modal-header-enhanced {
    padding: 15px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .header-actions {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .modal-body-enhanced {
    padding: 15px;
  }
  
  .form-fields-container {
    gap: 15px;
  }
  
  .input-group-enhanced,
  .textarea-group-enhanced {
    border-radius: 8px;
  }
  
  .form-control-enhanced,
  .textarea-enhanced {
    padding: 12px 12px 12px 0;
    font-size: 0.95rem;
  }
  
  .textarea-enhanced {
    padding-left: 40px;
    min-height: 100px;
  }
  
  .textarea-icon {
    top: 12px;
    left: 12px;
  }
}

/* Animation Enhancements */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Focus States */
.form-control-enhanced:focus + .input-focus-line,
.textarea-enhanced:focus + .textarea-focus-line {
  transform: scaleX(1);
}

/* Validation States */
.form-control-enhanced.is-valid {
  color: #28a745;
}

.form-control-enhanced.is-invalid {
  color: #dc3545;
}

/* Loading Animation */
.btn-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   ORIGINAL STYLES
   ======================================== */

.toast{
  display: none;
  min-width: 20vw
}
.toast.show {
    display: block;
    opacity: 1;
    position: fixed;
    z-index: 99999999;
    margin: 20px;
    right: 0;
    top: 3.5rem;
}
.swal2-container{
    z-index: 99999999;
}
#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    color: #000000cf;
    font-style: italic;
}
 .modal-dialog.large {
    width: 80% !important;
    max-width: unset;
  }
  .modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
  }
  #viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}
#viewer_modal .modal-dialog {
        width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}
  #viewer_modal .modal-content {
       background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }

/* Head Management Styles */
.page-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2.5rem 2rem;
	border-radius: 20px;
	margin-bottom: 2rem;
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
	position: relative;
	overflow: hidden;
}

.page-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
	pointer-events: none;
}

.header-content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.header-icon-wrapper {
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255,255,255,0.3);
}

.header-icon {
	font-size: 2.5rem;
	opacity: 0.9;
}

.page-title {
	font-size: 3rem;
	font-weight: 800;
	margin: 0;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
	letter-spacing: -0.8px;
	line-height: 1.1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.title-highlight {
	font-size: 2.2rem;
	font-weight: 600;
	opacity: 0.9;
	color: rgba(255,255,255,0.95);
	text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
	letter-spacing: -0.3px;
}

.page-subtitle {
	font-size: 1.3rem;
	margin-top: 1rem;
	opacity: 0.95;
	font-weight: 500;
	line-height: 1.5;
	display: flex;
	align-items: center;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.header-stats {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	font-size: 0.95rem;
	opacity: 0.85;
}

.stat-item {
	display: flex;
	align-items: center;
	font-weight: 500;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stat-text {
	margin-left: 0.25rem;
}

.stat-divider {
	opacity: 0.6;
	font-weight: 300;
}

.card-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.card-subtitle {
	font-size: 1rem;
	opacity: 0.85;
	font-weight: 400;
}

.search-filter-section .card {
	border-radius: 15px;
	overflow: hidden;
}

.search-box .input-group-text {
	border-radius: 10px 0 0 10px;
	border-right: none;
}

.search-box .form-control {
	border-radius: 0 10px 10px 0;
	border-left: none;
	padding: 12px 15px;
	font-size: 1rem;
}

.search-box .form-control:focus {
	box-shadow: none;
	border-color: #667eea;
}

.head-list-card {
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.head-list-card .card-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 1.5rem;
	border: none;
}

.head-list-card .card-title {
	font-size: 1.5rem;
	font-weight: 600;
}

.head-list-card .table {
	margin: 0;
}

.head-list-card .table thead th {
	border: none;
	padding: 1.25rem 1rem;
	font-weight: 700;
	color: #2c3e50;
	background-color: #f8f9fa;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.th-content {
	display: flex;
	align-items: center;
	font-weight: 700;
}

.head-list-card .table tbody td {
	border: none;
	padding: 1.25rem 1rem;
	vertical-align: middle;
	border-bottom: 1px solid #e9ecef;
	background-color: #ffffff;
}

.head-list-card .table tbody tr:nth-child(even) td {
	background-color: #fafbfc;
}

.head-row:hover {
	background-color: #f8f9fa !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.head-row:hover td {
	background-color: #f8f9fa !important;
}

.head-name {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.3;
}

.head-id {
	font-size: 0.85rem;
	color: #6c757d;
	font-weight: 500;
}

.department-badge {
	font-size: 0.85rem;
	padding: 0.6rem 1rem;
	border-radius: 25px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.school-id {
	font-size: 1rem;
	color: #495057;
	font-weight: 600;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	letter-spacing: 0.5px;
}

.email-link {
	color: #007bff;
	font-weight: 500;
	transition: all 0.2s ease;
}

.email-link:hover {
	color: #0056b3;
	text-decoration: underline !important;
}

.email-text {
	font-size: 0.95rem;
	word-break: break-all;
}

.row-number {
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.5rem 0.75rem;
}

.btn-group .btn {
	margin-right: 2px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-group .btn:last-child {
	margin-right: 0;
}

.btn-outline-info:hover {
	background-color: #17a2b8;
	border-color: #17a2b8;
	transform: translateY(-1px);
}

.btn-outline-primary:hover {
	background-color: #007bff;
	border-color: #007bff;
	transform: translateY(-1px);
}

.btn-outline-danger:hover {
	background-color: #dc3545;
	border-color: #dc3545;
	transform: translateY(-1px);
}

.empty-state {
	padding: 4rem 2rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 15px;
	margin: 2rem;
}

.empty-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #6c757d;
	margin-bottom: 1rem;
}

.empty-description {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #6c757d;
	max-width: 500px;
	margin: 0 auto;
}

.empty-state .empty-icon {
	color: #dee2e6;
	opacity: 0.7;
}

.loading-state {
	padding: 4rem 2rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 15px;
	margin: 2rem;
}

.count-badge .badge {
	font-size: 1rem;
	font-weight: 600;
	border-radius: 25px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.count-text {
	font-weight: 700;
}

/* Responsive Design for Head Management */
@media (max-width: 768px) {
	.page-header {
		padding: 2rem 1.5rem;
		margin-bottom: 1.5rem;
	}
	
	.header-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.header-icon-wrapper {
		width: 60px;
		height: 60px;
	}
	
	.header-icon {
		font-size: 2rem;
	}
	
	.page-title {
		font-size: 2.5rem;
		line-height: 1.2;
	}
	
	.title-highlight {
		font-size: 1.8rem;
	}
	
	.page-subtitle {
		font-size: 1.2rem;
		margin-top: 0.75rem;
	}
	
	.header-stats {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		margin-top: 0.75rem;
		font-size: 0.9rem;
	}
	
	.stat-divider {
		display: none;
	}
	
	.search-filter-section .row {
		flex-direction: column;
		gap: 1rem;
	}
	
	.search-filter-section .col-lg-6:last-child {
		text-align: left !important;
	}
	
	.filter-options {
		justify-content: flex-start !important;
	}
	
	.head-list-card .table-responsive {
		font-size: 0.9rem;
	}
	
	.head-list-card .table thead th {
		padding: 0.75rem 0.5rem;
		font-size: 0.8rem;
	}
	
	.head-list-card .table tbody td {
		padding: 0.75rem 0.5rem;
	}
	
	.btn-group .btn {
		padding: 0.25rem 0.5rem;
		font-size: 0.8rem;
	}
	
	.head-name {
		font-size: 1rem;
	}
	
	.school-id {
		font-size: 0.9rem;
	}
	
	.email-text {
		font-size: 0.85rem;
	}
	
	.empty-state {
		padding: 3rem 1.5rem;
		margin: 1rem;
	}
	
	.empty-title {
		font-size: 1.5rem;
	}
	
	.empty-description {
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.page-header {
		padding: 1.5rem 1rem;
	}
	
	.page-title {
		font-size: 2.25rem;
		line-height: 1.3;
	}
	
	.title-highlight {
		font-size: 1.6rem;
	}
	
	.page-subtitle {
		font-size: 1.1rem;
		margin-top: 0.5rem;
	}
	
	.header-stats {
		font-size: 0.85rem;
		margin-top: 0.5rem;
	}
	
	.header-icon-wrapper {
		width: 50px;
		height: 50px;
	}
	
	.header-icon {
		font-size: 1.75rem;
	}
	
	.head-list-card .table thead th {
		padding: 0.5rem 0.25rem;
		font-size: 0.75rem;
	}
	
	.head-list-card .table tbody td {
		padding: 0.5rem 0.25rem;
	}
	
	.btn-group .btn {
		padding: 0.2rem 0.4rem;
		font-size: 0.75rem;
	}
}

/* Head Modal Styles */
.head-modal-container {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-header-enhanced {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-content {
	display: flex;
	align-items: center;
}

.header-icon {
	font-size: 2rem;
	margin-right: 1rem;
	opacity: 0.9;
}

.modal-title-enhanced {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
}

.modal-subtitle {
	font-size: 0.9rem;
	opacity: 0.8;
	margin: 0.25rem 0 0 0;
}

.btn-close-modal {
	background: rgba(255,255,255,0.2);
	border: none;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.btn-close-modal:hover {
	background: rgba(255,255,255,0.3);
	transform: scale(1.1);
}

.modal-body-enhanced {
	padding: 2rem;
}

.form-field-group {
	margin-bottom: 1.5rem;
	animation: fadeInUp 0.6s ease-out;
}

.input-group-enhanced {
	position: relative;
}

.form-label-enhanced {
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.5rem;
	display: block;
}

.form-control-enhanced {
	border: 2px solid #e9ecef;
	border-radius: 10px;
	padding: 12px 15px;
	font-size: 1rem;
	transition: all 0.3s ease;
	width: 100%;
}

.form-control-enhanced:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
	outline: none;
}

.form-control-enhanced.is-valid {
	border-color: #28a745;
}

.form-control-enhanced.is-invalid {
	border-color: #dc3545;
}

.input-group-enhanced.success .form-control-enhanced {
	border-color: #28a745;
}

.input-group-enhanced.error .form-control-enhanced {
	border-color: #dc3545;
}

.custom-file-enhanced {
	position: relative;
	display: inline-block;
	width: 100%;
}

.custom-file-input-enhanced {
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
}

.custom-file-label-enhanced {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0.375rem 0.75rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.custom-file-label-enhanced:hover {
	border-color: #667eea;
	background-color: #f8f9fa;
}

.profile-preview {
	margin-top: 1rem;
}

.profile-image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #e9ecef;
	transition: all 0.3s ease;
}

.profile-image:hover {
	border-color: #667eea;
	transform: scale(1.05);
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9ecef;
}

.btn-submit {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 12px 30px;
	border-radius: 10px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit.loading {
	opacity: 0.7;
	cursor: not-allowed;
}

.btn-submit.success {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-cancel {
	padding: 12px 30px;
	border-radius: 10px;
	font-weight: 600;
}

.alert-enhanced {
	border: none;
	border-radius: 10px;
	padding: 1rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.alert-content {
	display: flex;
	align-items: center;
}

.alert-icon {
	margin-right: 0.5rem;
	font-size: 1.1rem;
}

.btn-close-alert {
	background: none;
	border: none;
	color: inherit;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.btn-close-alert:hover {
	opacity: 1;
}

/* Password Match Styling */
#pass_match {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

#pass_match i {
	font-style: normal;
}