/* =========================================
   Modern Design System
   ========================================= */

:root {
  /* Colors */
  --primary-color: #6366f1;
  /* Indigo 500 */
  --primary-hover: #4f46e5;
  /* Indigo 600 */
  --secondary-color: #1f2937;
  /* Gray 800 */
  --accent-color: #06b6d4;
  /* Cyan 500 */

  /* Backgrounds */
  --bg-body: #f3f4f6;
  /* Gray 100 */
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);

  /* Text */
  --text-main: #111827;
  /* Gray 900 */
  --text-muted: #6b7280;
  /* Gray 500 */
  --text-light: #f9fafb;
  /* Gray 50 */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing */
  --navbar-height: 70px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  padding-top: var(--navbar-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   Navigation Styles
   ========================================= */
.navbar-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  height: var(--navbar-height);
  padding: 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(99, 102, 241, 0.1);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
  padding: 0.5rem;
  margin-top: 1rem;
  background: var(--bg-card);
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.dropdown-item:hover {
  background-color: var(--bg-body);
  color: var(--primary-color);
}

/* =========================================
   Footer Styles
   ========================================= */
.main-footer {
  margin-top: auto;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* Material Card Style */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px 8px 0 0 !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

/* Enhanced Nav Tabs */
.nav-tabs {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(25, 118, 210, 0.05);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 600;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Beautiful Buttons */
.btn {
  border-radius: 4px;
  font-weight: 500;
  /* padding: 0.5rem 1.25rem; */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Enhanced Form Controls */
.form-control {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* padding: 0.75rem 1rem; */
  transition: all 0.3s ease;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Rich Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Custom Checkboxes and Radios */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
}

.form-check-label {
  margin-left: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* Custom Switch */
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.5em;
}

/* DataTables Customization */
.dataTables_wrapper {
  padding: 0;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  border: 1px solid #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 4px !important;
  margin: 0 2px;
  transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
}

/* Alert Styles */
.alert {
  border-radius: 6px;
  padding: 1rem 1.25rem;
  border: none;
}

.alert-primary {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
}

.alert-success {
  background-color: rgba(56, 142, 60, 0.1);
  color: #2E7D32;
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: rgba(211, 47, 47, 0.1);
  color: #C62828;
  border-left: 4px solid var(--error-color);
}

/* Table Enhancements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 1rem;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card {
    border-radius: 0;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .form-control {
    padding: 0.65rem 0.9rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Animation for Page Load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.main-content {
  animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip Enhancements */
.tooltip-inner {
  background-color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--primary-dark);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 12px;
  font-size: 0.75em;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

/* Dropdown Enhancements */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-dark);
}

.dropdown-divider {
  border-color: rgba(0, 0, 0, 0.05);
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  font-weight: 600;
}

.close {
  color: white;
  opacity: 0.8;
  text-shadow: none;
}

.close:hover {
  color: white;
  opacity: 1;
}

/* Navbar Enhancements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  background-color: white;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-dark) !important;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Sidebar Navigation */
.sidebar {
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 1rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link {
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  border-radius: 0 30px 30px 0;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-color);
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.sidebar .nav-link i {
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* Dashboard Cards */
.dashboard-card {
  border-radius: 8px;
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.dashboard-card .card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.dashboard-card .card-value {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-active {
  background-color: var(--success-color);
}

.status-inactive {
  background-color: var(--error-color);
}

.status-pending {
  background-color: var(--warning-color);
}

/* Progress Bars */
.progress {
  height: 27px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
  background-color: var(--primary-color);
  font-size: 10px;
  padding: 5px;
}

/* Custom Toggle Switch */
.custom-switch .custom-control-label::before {
  height: 1.5rem;
  border-radius: 1rem;
}

.custom-switch .custom-control-label::after {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 1.5rem;
  transform: translateX(0.25rem);
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
  transform: translateX(1.75rem);
  background-color: white;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1001;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .navbar-toggler {
    display: block;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Main Container */
.candidate-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-top: 20px;
}

/* Header Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 8px 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Status Filter Buttons */
.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.status-button {
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  white-space: nowrap;
}

.status-button:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.status-button.active {
  background: #4e73df;
  color: white;
  border-color: #4e73df;
  box-shadow: 0 2px 5px rgba(78, 115, 223, 0.3);
}

/* Table Styles */
.candidate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.candidate-table thead th {
  background-color: #f8f9fc;
  color: #5a5c69;
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 2px solid #e3e6f0;
}

.candidate-table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #e3e6f0;
}

.candidate-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Status Dropdown */
.status-dropdown {
  border-radius: 4px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.status-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Action Buttons in Table */
.table-action-btn {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-right: 5px;
  transition: all 0.2s;
}

.table-action-btn:hover {
  transform: translateY(-1px);
}

.btn-edit {
  background: #f6c23e;
  border-color: #f6c23e;
  color: #fff;
}

.btn-delete {
  background: #e74a3b;
  border-color: #e74a3b;
  color: #fff;
}

.btn-contract {
  background: #36b9cc;
  border-color: #36b9cc;
  color: #fff;
}

/* Alert Styles */
.alert-notification {
  border-radius: 6px;
  padding: 12px 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

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

  .action-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .status-buttons {
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* Custom Scrollbar for DataTable */
.dataTables_scrollBody::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sortable-item {
  cursor: move;
}

input[type=checkbox],
input[type=radio] {
  box-sizing: border-box;
  padding: 0;
  display: block;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item {
  margin-right: 5px;
}

.nav-link {
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 8px 15px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.marquee-container {
  background-color: #f8f9fa;
  padding: 8px 0;
  margin-bottom: 20px;
  border-radius: 4px;
}

.container {
  padding-top: 10px;
}

.alert {
  margin-bottom: 20px;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.fa-icon {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Custom CSS for Candidate Edit Form */
.candidate-edit-container {
  padding: 20px 0;
}

.section-header {
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title {
  color: #1976D2;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, #1976D2 0%, rgba(25, 118, 210, 0.1) 100%);
  margin-top: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #455A64;
  margin-bottom: 0.5rem;
}

.form-control-lg,
.form-select.form-control-lg {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #E0E0E0;
  transition: all 0.3s;
}

.form-control-lg:focus,
.form-select.form-control-lg:focus {
  border-color: #1976D2;
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.input-group-text {
  background-color: #f5f5f5;
}

.btn-lg {
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 6px;
}

.img-thumbnail {
  border-radius: 6px;
  border: 1px solid #E0E0E0;
}

.invalid-feedback {
  display: none;
  font-size: 0.875rem;
}

.is-invalid {
  border-color: #D32F2F !important;
}

.is-invalid+.invalid-feedback {
  display: block;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.25rem;
  }

  .form-control-lg,
  .form-select.form-control-lg {
    padding: 0.65rem 0.9rem;
  }
}

/* Visa Round Specific Styles */
.candidate-edit-container {
  padding: 20px 0;
}

.section-header {
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title {
  color: #1976D2;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, #1976D2 0%, rgba(25, 118, 210, 0.1) 100%);
  margin-top: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #455A64;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  transition: all 0.3s;
  /* padding: 0.5rem 0.75rem; */
}

.form-control:focus {
  border-color: #1976D2;
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.input-group-text {
  background-color: #f5f5f5;
  border-right: none;
}

.input-group .form-control {
  border-left: none;
}

.btn-primary {
  background-color: #1976D2;
  border-color: #1976D2;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.1rem;
  }

  .form-control {
    padding: 0.4rem 0.65rem;
  }
}

.card {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.table th,
.table td {
  vertical-align: middle;
}

@media (min-width: 1200px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 81%;
  }
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.avatar-text {
  font-weight: 600;
  color: #fff;
}

.selected-member {
  transition: all 0.2s;
}

.selected-member:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.table-hover tbody tr:hover {
  transform: translateX(2px);
}

#search-results .list-group-item {
  border-left: 0;
  border-right: 0;
}

#search-results .list-group-item:first-child {
  border-top: 0;
}

.toast {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* =========================================
   Login Page Styles (Split Screen)
   ========================================= */
.login-body {
  background-color: white;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.login-split-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Side - Visual */
.login-visual-side {
  flex: 1;
  background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1740&q=80');
  /* Modern tech/workspace vibe */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: white;
}

.login-visual-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(6, 182, 212, 0.8) 100%);
  z-index: 1;
}

.visual-content {
  position: relative;
  z-index: 2;
}

.visual-logo {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-heading {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.visual-text {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 80%;
}

/* Right Side - Form */
.login-form-side {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: white;
  position: relative;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.form-floating>.form-control {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.form-floating>.form-control:focus {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-login {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  transition: all 0.2s;
}

.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

@media (max-width: 992px) {
  .login-visual-side {
    display: none;
  }

  .login-form-side {
    max-width: 100%;
    background: white;
  }
}

.card-blue::before {
  background: var(--blue-gradient);
}

.card-orange::before {
  background: var(--orange-gradient);
}

.card-green::before {
  background: var(--green-gradient);
}

.card-purple::before {
  background: var(--purple-gradient);
}

.card-content {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.card-purple .card-icon-wrapper {
  background: var(--purple-gradient);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.card-blue .card-icon-wrapper {
  background: var(--blue-gradient);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-orange .card-icon-wrapper {
  background: var(--orange-gradient);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.card-green .card-icon-wrapper {
  background: var(--green-gradient);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.card-info {
  flex-grow: 1;
}

.card-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
}

.card-action {
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
  margin-top: auto;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.card-purple .action-link {
  color: #6366f1;
}

.card-blue .action-link {
  color: #3b82f6;
}

.card-orange .action-link {
  color: #f97316;
}

.card-green .action-link {
  color: #10b981;
}

.action-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.action-link i {
  transition: transform 0.2s;
}


/* =========================================
   Premium Header & Footer Styles
   ========================================= */

/* Header */
.navbar-glass {
  height: 80px;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-bar-modern {
  position: relative;
  width: 300px;
  margin-right: 1.5rem;
  display: none;
  /* Hidden on mobile by default */
}

@media (min-width: 992px) {
  .search-bar-modern {
    display: block;
  }
}

.search-bar-modern input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-bar-modern input:focus {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

.search-bar-modern i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  position: relative;
  border: none;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* User Profile */
.user-profile-dropdown {
  margin-left: 0.5rem;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem;
  padding-right: 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.user-toggle:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-info {
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Footer (Minimalist) */
.main-footer {
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Nav Link Enhancements */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
}