:root {
  --primary-color: #1F41BB;
  --primary-hover: #153091;
  --primary-gold: #DFB173;
  --black-color: #394150;
  --bg-color: #f6f8fb;
  --border-radius: 16px;
  --input-radius: 5px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-family);
  color: var(--black-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.active>.page-link,
.page-link.active {
  background-color: var(--primary-color);
}

div.dataTables_wrapper div.dataTables_length select {
  padding-right: 22px;
}

/* Button Overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--input-radius);
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(31, 65, 187, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(31, 65, 187, 0.3);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--input-radius);
  padding: 12px 24px;
  font-weight: 500;
  background-color: white;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Inputs & Forms */
.form-control,
.form-select {
  border-radius: var(--input-radius);
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  color: var(--black-color);
  font-size: 0.95rem;
  background-color: #f8fafc;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 65, 187, 0.08);
}

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

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
}

.input-icon-wrapper .form-control {
  padding-left: 48px;
}

/* Checkboxes & Switches */
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  transition: var(--transition);
  cursor: pointer;
}

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

.custom-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  border-radius: 2rem;
  background-color: #e2e8f0;
  border: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

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

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  background: #ffffff;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pattern-card {
  background-image: url('../img/pattern.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pattern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(31, 65, 187, 0.9) 0%, rgba(21, 48, 145, 0.95) 100%);
  z-index: 1;
}

.pattern-card .card-body {
  position: relative;
  z-index: 2;
  color: #fff;
}

.pattern-card h3,
.pattern-card h5,
.pattern-card p {
  color: #fff;
}

/* Sidebar & Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar Shell ── */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0d1526 0%, #0b1020 60%, #080d1a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
  overflow: hidden;
}

/* Subtle ambient glow top-right */
.sidebar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 65, 187, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Brand / Logo Area ── */
.sidebar-header {
  padding: 28px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.sidebar-logo-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1f41bb 0%, #2d55d4 100%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(31, 65, 187, 0.45);
}

.sidebar-logo-wrapper img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sidebar-brand-text .brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.sidebar-brand-text .brand-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ── Navigation ── */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px 8px;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-nav-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  padding: 16px 14px 6px;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.22s ease;
  position: relative;
  gap: 5px;
}

.sidebar-nav .nav-link .nav-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 9px; */
  /* background: rgba(255, 255, 255, 0.05); */
  flex-shrink: 0;
  transition: all 0.22s ease;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link:hover .nav-icon {
  /* background: rgba(255, 255, 255, 0.1); */
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-nav .nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(31, 65, 187, 0.5) 0%, rgba(31, 65, 187, 0.18) 100%);
}

.sidebar-nav .nav-link.active .nav-icon {
  /* background: linear-gradient(135deg, #1f41bb 0%, #2d55d4 100%); */
  /* background-color: var(--primary-gold); */
  color: #ffffff;
  /* box-shadow: 0 4px 12px rgba(31, 65, 187, 0.5); */
}

/* Active left accent bar */
.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  /* background: #4f7ef8; */
  border-radius: 0 4px 4px 0;
}

/* ── Divider ── */
.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 12px;
}

/* ── Bottom pinned section ── */
.sidebar-footer {
  padding: 12px 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.sidebar-user-info .user-full-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.sidebar-user-info .user-role-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* Sign-out link in footer */
.sidebar-nav .nav-link.signout-link {
  color: rgba(239, 68, 68, 0.7);
}

.sidebar-nav .nav-link.signout-link .nav-icon {
  background: rgba(239, 68, 68, 0.1);
  color: rgba(239, 68, 68, 0.7);
}

.sidebar-nav .nav-link.signout-link:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.sidebar-nav .nav-link.signout-link:hover .nav-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.sidebar-nav .nav-link.signout-link.active::before {
  display: none;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  background-color: #f8fafc;
  min-height: 100vh;
}

/* ── Header ── */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 12px 24px;
  border-radius: 18px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: sticky;
  top: 16px;
  z-index: 900;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-header:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(31, 65, 187, 0.1);
}

/* Left cluster: toggle + title group */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.page-breadcrumb {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

.page-breadcrumb .bc-active {
  color: var(--primary-color);
}

.page-title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Right cluster */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.header-icon-btn:hover {
  background: #eff6ff;
  color: var(--primary-color);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.header-icon-btn i {
  font-size: 1.25rem;
}

.header-icon-btn .btn-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Action button (page-level CTA) */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d55d4 100%);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(31, 65, 187, 0.2);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta i {
  font-size: 1.05rem;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 65, 187, 0.32);
  color: #fff;
}

/* Divider between CTA and user */
.header-divider {
  width: 1px;
  height: 28px;
  background: #e8ecf2;
  border-radius: 1px;
}

/* User profile pill */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 2px 8px 2px 2px;
  border-radius: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.user-profile:hover {
  background: rgba(31, 65, 187, 0.02);
  border-color: #f1f5f9;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  flex-shrink: 0;
}

.user-profile:hover .avatar {
  background: #eff6ff;
  color: var(--primary-color);
  border-color: #bfdbfe;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.1;
}

.user-role {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.user-caret {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-profile:hover .user-caret,
.user-profile[aria-expanded="true"] .user-caret {
  color: #475569;
  transform: rotate(-180deg);
}

/* Dropdown styling */
.dropdown-menu {
  border: 1px solid #edf0f5;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 6px;
  min-width: 210px;
  margin-top: 10px !important;
  animation: dropIn 0.18s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.dropdown-item {
  padding: 9px 14px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.dropdown-item i {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: color 0.15s ease;
  width: 18px;
  text-align: center;
}

.dropdown-item:hover {
  background-color: #f0f5ff;
  color: var(--primary-color);
}

.dropdown-item:hover i {
  color: var(--primary-color);
}

.dropdown-item.text-danger:hover {
  background-color: #fff1f1;
  color: #dc2626;
}

.dropdown-item.text-danger:hover i {
  color: #dc2626;
}

.dropdown-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 8px 14px 4px;
}

.dropdown-divider {
  border-color: #f1f5f9;
  margin: 4px 0;
}


/* DataTables & Responsive Tables Styled */
.table-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Ensure all responsive containers handle overflow correctly */
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 1rem;
}

/* Custom Scrollbar for a premium look */
.table-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.dataTables_wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.dataTables_wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.dataTables_wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.table-wrapper::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.dataTables_wrapper::-webkit-scrollbar-thumb:hover {
  background: #1F41BB;
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100% !important;
}

table.dataTable thead th {
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc;
}

table.dataTable thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

table.dataTable thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

table.dataTable tbody td {
  padding: 12px 16px !important;
  vertical-align: middle;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

table.dataTable tbody tr:hover td {
  background-color: #f8fafc;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--input-radius);
  border: 1px solid #e2e8f0;
  padding: 10px 16px 10px 40px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'%3E%3C/path%3E%3C/svg%3E") no-repeat 14px center;
  font-family: var(--font-family);
  font-size: 0.9rem;
  width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(31, 65, 187, 0.08);
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  outline: none;
}

.dataTables_wrapper .dataTables_paginate {
  margin-top: 16px;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 0px solid transparent !important;
  padding: 0;
  font-weight: 500;
  color: #64748b !important;
  background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: transparent !important;
}

.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;
  box-shadow: 0 4px 10px rgba(31, 65, 187, 0.2);
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.badge-active {
  background-color: #ecfdf5;
  color: #059669;
}

.badge-pending {
  background-color: #fffbeb;
  color: #d97706;
}

.badge-completed {
  background-color: #eff6ff;
  color: #2563eb;
}

.badge-cancelled {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Actions in Table */
.action-btns {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #f8fafc;
  color: #64748b;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.btn-action:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-action.btn-delete:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* ── Login Page (Split Layout) ── */
body.login-page {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
}

.login-split-wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 56px);
}

/* Left panel */
.login-left-panel {
  width: 480px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  z-index: 2;
  box-shadow: 4px 0 40px rgba(15, 23, 42, 0.07);
}

.login-left-inner {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: loginFadeUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Brand block */
/* Brand block with dual logos */
.login-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  animation: brandFadeIn 0.8s ease-out forwards;
  justify-content: space-between;
  flex-direction: row-reverse;
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

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

.login-brand-logo {
  height: 94px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: all 0.3s ease;
}

.login-brand-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.login-ministry-logo {
  height: 74px;
}

.login-brand-divider {
  width: 1px;
  height: 36px;
  /* background-color: #e2e8f0; */
  margin: 0 4px;
  opacity: 0.8;
}

/* Form section */
.login-form-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.login-subheading {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 28px;
}

/* Submit button */
.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 14px !important;
}

/* Forgot password */
.login-forgot-link {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-forgot-link:hover {
  opacity: 0.75;
  color: var(--primary-color);
}

/* Security note */
.login-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.login-security-note i {
  font-size: 1rem;
  color: #22c55e;
}

/* Right panel — hero image */
.login-right-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #081340;
}

.login-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.login-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(8, 19, 64, 0.18) 0%,
      transparent 60%);
  pointer-events: none;
}

/* Footer */
.login-footer {
  background: #0d1526;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 14px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.login-footer p {
  margin: 0;
}

/* Old selectors kept for backward compat if needed */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/pattern.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 48px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}

.login-logo {
  max-width: 180px;
  margin: 0 auto 32px;
  display: block;
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {
  .login-ministry-logo {}

  .login-brand-logo {}

  .login-brand {
    flex-direction: column;
    gap: 0;
  }

  .login-brand-divider {
    display: none;
  }

  .wrapper {
    display: block;
  }

  .login-split-wrapper {
    flex-direction: column;
  }

  .login-left-panel {
    width: 100%;
    box-shadow: none;
    padding: 36px 24px;
  }

  .login-right-panel {
    height: 240px;
    flex: none;
  }
}

/* Custom Nav Pills */
.custom-pills {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  display: inline-flex;
}

.custom-pills .nav-link {
  color: #64748b;
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.custom-pills .nav-link:hover {
  color: #1e293b;
}

.custom-pills .nav-link.active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 24px;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .header-cta span {
    display: none;
  }
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f5ff;
  border: none;
  border-radius: 10px;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-action-edit {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
  transition: var(--transition);
}

.btn-action-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.3);
  color: #fff;
}

.btn-action-delete {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  transition: var(--transition);
}

.btn-action-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
  color: #fff;
}

/* ── Draw Details Specific Styles ── */
.draw-hero {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(31, 65, 187, 0.05);
  margin-bottom: 24px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 65, 187, 0.1);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(31, 65, 187, 0.2);
}

.draw-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(31, 65, 187, 0.03), transparent 70%);
  pointer-events: none;
}

.draw-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.draw-hero-thumb {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.draw-hero-thumb:hover {
  transform: scale(1.05) rotate(-2deg);
}

.draw-hero-body {
  flex: 1;
  min-width: 0;
}

.draw-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.draw-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.draw-meta-item .meta-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.draw-meta-item .meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  line-height: 1;
}

.draw-meta-item .meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.btn-sm-compact {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  transition: all 0.22s ease;
  cursor: pointer;
}

.btn-sm-compact:hover {
  background: #f8fafc;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-sm-compact i {
  font-size: 0.95rem;
}

.btn-action-edit.btn-sm-compact {
  color: var(--primary-color);
  background: rgba(31, 65, 187, 0.04);
  border-color: rgba(31, 65, 187, 0.1);
}

.btn-action-delete.btn-sm-compact {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
  border-color: rgba(220, 38, 38, 0.1);
}

.btn-action-delete.btn-sm-compact:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ── Compact Overrides ── */
.compact-header {
  padding: 10px 20px !important;
  margin-bottom: 16px !important;
  top: 12px !important;
}

.draw-hero-compact {
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.draw-hero-compact .draw-hero-thumb {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.draw-hero-compact .draw-hero-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.draw-hero-compact .draw-hero-meta {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
  gap: 20px !important;
}

.draw-hero-compact .draw-meta-item {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.8rem !important;
  color: #64748b;
  gap: 6px !important;
}

.draw-hero-compact .draw-meta-item i {
  font-size: 1.05rem;
  color: #94a3b8;
}

.draw-hero-compact .draw-meta-item span {
  font-weight: 500;
  color: #334155;
}

/* ── Modern Draw Hero (One Line Layout) ── */
.draw-hero-modern {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.draw-hero-modern:hover {
  box-shadow: 0 10px 30px rgba(31, 65, 187, 0.05);
  border-color: rgba(31, 65, 187, 0.1);
  transform: translateY(-2px);
}

.draw-hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.draw-hero-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 300px;
}

.draw-hero-thumb-lg {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: var(--transition);
}

.draw-hero-thumb-lg:hover {
  transform: scale(1.05);
}

.draw-hero-title-modern {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.draw-hero-meta-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.meta-inline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
}

.meta-inline-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.meta-inline-sep {
  width: 1px;
  height: 14px;
  background: #e2e8f0;
}

.draw-hero-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Stats Row ── */
.stat-card {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 65, 187, 0.08);
  border-color: rgba(31, 65, 187, 0.1);
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-icon-wrap {
  transform: scale(1.1);
}

.stat-icon-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
}

.stat-icon-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
}

.stat-icon-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
}

.stat-icon-purple {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #7c3aed;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ── Section Cards ── */
.section-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: var(--transition);
}

.section-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 250, 252, 0.5);
}

.section-card-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.section-card-header h2 .section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.section-card-body {
  padding: 0;
}

/* ── User Avatar ── */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f41bb, #4f7ef8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f41bb, #4f7ef8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Winners Panel ── */
.winner-slot-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(31, 65, 187, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slot-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.slot-label-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(31, 65, 187, 0.1);
}

/* ── Raffle Plugin ── */
.raffle-wrapper {
  width: 100%;
  height: 80px;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  border: 4px solid #1e293b;
  position: relative;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.raffle-wrapper::before,
.raffle-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}

.raffle-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, #0f172a 0%, transparent 100%);
}

.raffle-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, #0f172a 0%, transparent 100%);
}

/* Central indicator line */
.raffle-wrapper::last-child {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(31, 65, 187, 0.15);
  border-top: 1px solid rgba(31, 65, 187, 0.3);
  border-bottom: 1px solid rgba(31, 65, 187, 0.3);
  pointer-events: none;
  z-index: 1;
}

.raffle-names {
  transition: transform 4.5s cubic-bezier(0.1, 0.9, 0.2, 1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.raffle-names li {
  height: 80px;
  line-height: 80px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.winner-highlight {
  color: #fff !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  background: linear-gradient(90deg, transparent, rgba(31, 65, 187, 0.2), transparent);
}

/* ── Draw Button ── */
.winner-selection-box {
  background: rgba(248, 250, 252, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.winner-selection-box:hover {
  background: rgba(248, 250, 252, 0.6);
  border-color: rgba(31, 65, 187, 0.1);
  box-shadow: 0 10px 25px rgba(31, 65, 187, 0.04);
}

.btn-draw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d55d4 100%);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(31, 65, 187, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.btn-draw:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 65, 187, 0.35);
  filter: brightness(1.05);
}

.btn-draw:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Winners Leaderboard ── */
.winners-leaderboard {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed rgba(0, 0, 0, 0.05);
}

.winners-leaderboard-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.candidate-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  margin-bottom: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.winner-item:hover {
  transform: translateX(6px);
  border-color: rgba(31, 65, 187, 0.2);
  box-shadow: 0 10px 20px rgba(31, 65, 187, 0.06);
}

.rank-1 {
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.3);
}

.rank-2 {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  box-shadow: 0 3px 8px rgba(148, 163, 184, 0.3);
}

.rank-3 {
  background: linear-gradient(135deg, #fed7aa 0%, #ea580c 100%);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
}

.rank-other {
  background: #e2e8f0;
  color: #475569 !important;
}

.winner-info {
  flex: 1;
  min-width: 0;
}

.winner-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-ticket {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.winner-arrow {
  color: #cbd5e1;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.winner-item:hover .winner-arrow {
  color: var(--primary-color);
}

/* ── Candidate Count Badge ── */
.candidate-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Winner Selection Box / Unified Input ── */

.selection-input-group {
  display: flex;
  align-items: stretch;
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.selection-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(31, 65, 187, 0.08);
}

.input-icon-prefix {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 1.1rem;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.selection-input-group:focus-within .input-icon-prefix {
  background: rgba(31, 65, 187, 0.05);
  color: var(--primary-color);
  border-right-color: rgba(31, 65, 187, 0.15);
}

#winnerTypeSelect {
  flex: 1;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2364748b' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E") no-repeat right 16px center !important;
  background-size: 18px !important;
  border: none !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 14px 44px 14px 16px !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  outline: none !important;
  width: 100%;
}

#winnerTypeSelect:hover {
  background-color: #f8fafc !important;
}

#winnerTypeSelect option {
  background: #ffffff;
  color: #0f172a;
  padding: 12px;
  font-weight: 600;
}

/* ── Status text ── */
#drawStatusText {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Back Button ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.btn-back:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateX(-3px);
}

/* ── Responsive Styles ── */

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--black-color);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 1024px) {
  .sidebar {
    left: -260px;
    transition: var(--transition);
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    transition: var(--transition);
  }

  .mobile-toggle {
    display: block;
  }

  /* Login Page Responsiveness */
  .login-split-wrapper {
    flex-direction: column;
    background-color: #153282;
    min-height: auto;
  }

  .login-left-panel {
    width: 91%;
    padding: 35px 21px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: auto;
    border-radius: 10px;
    margin-top: -90px;
    margin-bottom: 25px;
  }

  .login-right-panel {
    height: 300px;
    order: -1;
    /* Image on top for mobile */
    margin-top: -21px;
  }

  .login-left-inner {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .login-heading {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 1.1rem;
  }

  .top-header {
    padding: 10px 14px;
    top: 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .header-left {
    gap: 10px;
  }

  .page-breadcrumb {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .user-profile {
    padding: 4px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .login-footer {
    padding: 20px;
    text-align: center;
  }
}

/* ── Draw Details Page Responsiveness ── */
@media (max-width: 768px) {
  .table-wrapper {
    padding: 12px;
    border-radius: 12px;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: left;
    margin-bottom: 15px;
  }
}

.draw-hero {
  padding: 24px 20px;
}

.draw-hero .d-flex.align-items-start.gap-4 {
  flex-direction: column;
  align-items: center !important;
  text-align: center;
  gap: 24px !important;
}

.draw-hero-thumb {
  width: 100px;
  height: 100px;
}

.draw-hero-body {
  width: 100%;
}

.draw-hero-body .d-flex.justify-content-between {
  flex-direction: column;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.draw-hero-meta {
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
}

.draw-meta-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(50% - 10px);
}

.draw-meta-item .meta-icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  margin-bottom: 4px;
}
}

@media (max-width: 576px) {
  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-num {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .winner-slot-wrapper {
    padding: 20px 16px;
    min-height: auto !important;
  }

  .raffle-wrapper {
    height: 72px;
  }

  .raffle-names li {
    font-size: 18px;
    height: 72px;
    line-height: 72px;
  }

  .section-card-header {
    padding: 16px 20px;
  }

  .section-card-header h2 {
    font-size: 0.95rem;
  }

  .candidate-count-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .draw-meta-item {
    width: 100%;
  }

  .draw-meta-item .meta-label {
    font-size: 0.68rem;
  }

  .draw-meta-item .meta-val {
    font-size: 0.85rem;
  }
}

/* Winner Detail Modal Mobile Adjustments */
@media (max-width: 480px) {
  #winnerDetailModal .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
    gap: 12px !important;
  }

  #winnerDetailModal #modalRankBadge {
    margin: 0 auto;
    width: 48px !important;
    height: 48px !important;
  }

  #winnerDetailModal #modalWinnerName {
    font-size: 1.2rem !important;
  }
}

/* FooTable Customization to match project aesthetic */
.footable.table {
  width: 100% !important;
}

.footable-details td {
  padding: 12px 16px !important;
}

.footable-toggle {
  color: var(--primary-color) !important;
}

.footable-row-detail-name {
  font-weight: 600;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.footable-row-detail-value {
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   ACCOUNT SWITCHER — Role Picker Modal
══════════════════════════════════════════ */
.account-switcher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 64, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.account-switcher-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.account-switcher-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 64px rgba(8, 19, 64, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
  opacity: 0;
  margin: 16px;
}

.account-switcher-overlay.active .account-switcher-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.account-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.account-switcher-header h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.account-switcher-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.account-switcher-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.account-switcher-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.role-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.role-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.role-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(31, 65, 187, 0.04) 100%);
  pointer-events: none;
}

.role-card:hover {
  border-color: #bfdbfe;
  background: #f0f5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 65, 187, 0.12);
}

.role-card.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f5ff 100%);
  box-shadow: 0 8px 24px rgba(31, 65, 187, 0.15);
}

.role-card.corporate-card:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

.role-card.corporate-card.active {
  border-color: #0d9488;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
}

.role-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d55d4 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 65, 187, 0.3);
  flex-shrink: 0;
}

.role-card.corporate-card .role-card-icon {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.role-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.role-card-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}

.role-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.role-card.active .role-card-check {
  opacity: 1;
}

.role-card.corporate-card .role-card-check {
  background: #0d9488;
}

/* Sidebar role switcher badge */
.sidebar-role-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-role-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(31, 65, 187, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-role-badge.corporate-badge {
  background: rgba(13, 148, 136, 0.35);
}

.sidebar-switch-btn {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.sidebar-switch-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Header switch account item */
.dropdown-item.switch-account-item {
  background: linear-gradient(90deg, #f0f5ff 0%, #f8f9ff 100%);
  border: 1px solid #dbeafe;
  margin-bottom: 4px;
  border-radius: 10px;
}

.dropdown-item.switch-account-item:hover {
  background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
  color: var(--primary-color);
  border-color: #bfdbfe;
}

/* ══════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════ */
.filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.filter-group .form-control,
.filter-group .form-select {
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 10px;
  height: 38px;
}

.filter-btn-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.filter-apply-btn {
  height: 38px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-apply-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.filter-reset-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-reset-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

/* ══════════════════════════════════════════
   COMPANY STATUS BADGES & EXTRAS
══════════════════════════════════════════ */
.badge-approved {
  background-color: #ecfdf5;
  color: #059669;
}

.badge-rejected {
  background-color: #fef2f2;
  color: #dc2626;
}

.badge-review {
  background-color: #f0f5ff;
  color: #2563eb;
}

.badge-corporate {
  background-color: #f0fdfa;
  color: #0d9488;
}

.company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

/* ── Winner Detail Modal ── */
.winner-modal-premium {
  border-radius: 28px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden;
  animation: modalScaleUp 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.winner-modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 48px 32px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Celebrating background effect */
.winner-modal-header::before {
  content: '🎊';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 80px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.winner-modal-header::after {
  content: '🏆';
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 80px;
  opacity: 0.1;
  transform: rotate(15deg);
}

.winner-modal-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  z-index: 2;
}

.winner-modal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.winner-modal-rank-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fbbf24;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 4px solid #3d3d3d;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.winner-modal-info {
  position: relative;
  z-index: 2;
}

.winner-modal-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

.winner-modal-name {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.winner-modal-body {
  padding: 32px;
  background: #ffffff;
}

.winner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: #f8fafc;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
}

.winner-detail-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.winner-detail-item .value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.winner-modal-footer {
  padding: 0 32px 32px;
  background: #ffffff;
}

.rank-1-bg {
  background: linear-gradient(135deg, #795f19 0%, #fbbf24 100%) !important;
}

.rank-2-bg {
  background: linear-gradient(135deg, #1e293b 0%, #94a3b8 100%) !important;
}

.rank-3-bg {
  background: linear-gradient(135deg, #1e293b 0%, #b45309 100%) !important;
}

/* Shine effect for premium header */
.winner-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 30%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 70%,
      transparent 100%);
  transform: rotate(45deg);
  animation: modalShine 4s infinite linear;
  pointer-events: none;
}

@keyframes modalShine {
  0% {
    transform: translate(-30%, -30%) rotate(45deg);
  }

  100% {
    transform: translate(30%, 30%) rotate(45deg);
  }
}


/* Draw request row approve/reject inline btns */
.btn-approve {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-approve:hover {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.btn-reject {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-reject:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* ══════════════════════════════════════════
   CORPORATE PORTAL SIDEBAR
══════════════════════════════════════════ */
.sidebar.corporate-sidebar {
  background: linear-gradient(180deg, #0a2420 0%, #071a17 60%, #04120f 100%);
}

.sidebar.corporate-sidebar::before {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, transparent 70%);
}

.sidebar.corporate-sidebar .sidebar-logo-wrapper {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
}

.sidebar.corporate-sidebar .sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.5) 0%, rgba(13, 148, 136, 0.18) 100%);
}

.sidebar.corporate-sidebar .sidebar-nav .nav-link:hover {
  background: rgba(13, 148, 136, 0.12);
}

.sidebar.corporate-sidebar .sidebar-role-badge {
  background: rgba(13, 148, 136, 0.35);
}

.corporate-header-cta {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2) !important;
}

.corporate-header-cta:hover {
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.32) !important;
}

/* Corporate stat cards */
.corp-stat-card {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.corp-stat-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.corp-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.corp-stat-icon.teal {
  background: #f0fdfa;
  color: #0d9488;
}

.corp-stat-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.corp-stat-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.corp-stat-icon.green {
  background: #ecfdf5;
  color: #059669;
}

.corp-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
}

.corp-stat-label {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 500;
}

/* Invoice scan area */
.invoice-scan-area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #f8fafc;
}

.invoice-scan-area:hover {
  border-color: #0d9488;
  background: #f0fdfa;
}

.invoice-scan-area i {
  font-size: 3rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.invoice-scan-area:hover i {
  color: #0d9488;
}

.invoice-scan-area p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.invoice-scan-area .scan-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Draw application status tracker */
.status-tracker {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 16px 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.status-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.status-step-dot.done {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.status-step-dot.active {
  background: #fff;
  border-color: #0d9488;
  color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.status-step-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-step-label.active {
  color: #0d9488;
}

.status-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin-top: -22px;
  position: relative;
  z-index: 1;
}

.status-step-line.done {
  background: #0d9488;
}

/* Start Draw button glow */
.btn-start-draw {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.btn-start-draw:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
  color: #fff;
}

.btn-start-draw:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════
   ACCOUNT SWITCHER — Sidebar & Shared JS
══════════════════════════════════════════ */
.account-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 0;
}

.account-switcher-trigger:hover .sidebar-switch-btn {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Modern Footer ── */
.main-footer {
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-content {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-brand-mark {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .main-footer {
    padding: 2rem 0;
  }
}

/* ── Company Detail Modal Enhancements ── */
.company-modal-hero {
  background: linear-gradient(135deg, #1f41bb 0%, #0d1526 100%), var(--primary-color);
  background-size: cover;
  position: relative;
  min-height: 160px;
}

.company-modal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.1;
  pointer-events: none;
}

.company-modal-avatar {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  border: 4px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.info-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.9rem;
  color: #1e293b;
}

.contact-pill {
  transition: transform 0.2s ease;
}

.contact-pill:hover {
  transform: translateX(4px);
}

.contact-icon {
  box-shadow: 0 2px 8px rgba(31, 65, 187, 0.05);
  border: 1px solid rgba(31, 65, 187, 0.05);
}

.opa-75 {
  opacity: 0.75;
}