@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&display=swap');
@import url('/public/fonts/Mingcute.css');

/* ===================== CSS Variables ===================== */
:root {
  --bg-primary: #0f0f14;
  --bg-secondary: #1a1a24;
  --bg-card: #22222e;
  --bg-card-hover: #2a2a3a;
  --bg-input: #181822;
  --border: #2e2e40;
  --border-focus: #6c5ce7;

  --accent: #902add;
  --accent-hover: #af47ff;
  --accent-glow: rgba(108, 92, 231, 0.25);

  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #989898;

  --success: #00d2a0;
  --success-bg: rgba(0, 210, 160, 0.12);
  --warning: #ffc048;
  --warning-bg: rgba(255, 192, 72, 0.12);
  --danger: #ff5c72;
  --danger-bg: rgba(255, 92, 114, 0.12);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

  --transition: 0.2s ease;
  --surface-color: #1a1a24;
  --border-color: #2e2e40;
  --text-color: #e8e8f0;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  /* --border-color: #5a5a5e; */
  --accent-glow: rgba(44, 44, 44, .95);

}

/* ===================== Reset ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[class^="mgc_"],
[class*=" mgc_"] {
  color: #ffffff;
}


html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Chiron GoRound TC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ===================== Layout ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #b16ee4, #af47ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-heading {
  text-align: center;
}

.card-icon {
  font-size: 26px;
}

.card-icon::before {
  color: #FFF;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-user span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

main {
  padding-top: 88px;
  padding-bottom: 2rem;
  min-height: calc(100vh - 64px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* ===================== Cards ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow);
}

.card-clickable {
  cursor: pointer;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta span,
.card-meta i {
  vertical-align: middle;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn i {
  font-size: 22px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #ff7a8c;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-sm i {
  font-size: 20px;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===================== Forms ===================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===================== Badges ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

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

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

.badge-default {
  background: rgba(136, 136, 160, 0.12);
  color: var(--text-secondary);
}

/* ===================== Tables ===================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(108, 92, 231, 0.04);
}

/* ===================== Modal ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Tags */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px var(--accent-glow);
  margin-right: 0.4rem;
  margin-bottom: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tag-editor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.tag-editor-item input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tag-editor-item input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tag-select-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tag-option.selected {
  border-color: var(--tag-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px var(--tag-color);
  color: white;
}

.tag-option:hover:not(.selected) {
  background: rgba(255, 255, 255, 0.05);
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===================== Progress Bar ===================== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a29bfe);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ===================== Toast ===================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-muted);
}

/* ===================== Tabs ===================== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tabs,
.tabs i {
  vertical-align: middle
}

.tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.tab i {
  font-size: 24px;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--text-primary);
  font-weight: bold;
  border-bottom-color: var(--accent);
}

/* ===================== Empty State ===================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* User Dropdown (matching notifications) */
.dropdown-wrapper {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  user-select: none;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-trigger span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
}

.user-trigger i {
  font-size: 22px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 200;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideInDown 0.2s ease-out;
  transform-origin: top right;
}

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

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: transparent !important;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.dropdown-item i {
  font-size: 1rem;
  color: var(--text-muted);
}

.dropdown-item.text-danger {
  color: var(--danger);
}

.dropdown-item.text-danger:hover {
  background: var(--danger-bg) !important;
}

.dropdown-menu hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 4px 8px;
}

/* Profile Page (matching participant forms) */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.profile-logo-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-logo-wrapper:hover {
  border-color: var(--accent);
  background: rgba(144, 42, 221, 0.05);
}

.profile-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-logo-wrapper .placeholder {
  color: var(--text-muted);
  font-size: 2.5rem;
}

.logo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-logo-wrapper:hover .logo-upload-overlay {
  opacity: 1;
}

.logo-upload-overlay i {
  color: white;
  font-size: 1.5rem;
}

.profile-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.profile-title p {
  color: var(--text-secondary);
  margin: 0.4rem 0 0 0;
  font-size: 0.95rem;
}

.profile-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ===================== Section Headers ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ===================== Vote Page ===================== */
.vote-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.vote-slot-info {
  font-weight: 500;
}

.vote-slot-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.vote-options {
  display: flex;
  gap: 0.5rem;
}

.vote-option {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.vote-option:hover {
  border-color: var(--text-secondary);
}

.vote-option.selected-available {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.vote-option.selected-maybe {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.vote-option.selected-unavailable {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ===================== Availability Grid ===================== */
.avail-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.avail-available {
  background: var(--success-bg);
  color: var(--success);
}

.avail-maybe {
  background: var(--warning-bg);
  color: var(--warning);
}

.avail-unavailable {
  background: var(--danger-bg);
  color: var(--danger);
}

.avail-none {
  background: rgba(136, 136, 160, 0.08);
  color: var(--text-muted);
}

/* ===================== Utility ===================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.text-sm {
  font-size: 0.85rem;
}

.text-muted {
  color: var(--text-secondary);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ===================== Animations ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

/* ===================== Auth Page ===================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .vote-slot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Header & Notifications Additions
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.notifications-wrapper {
  position: relative;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.notif-header {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.notif-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.notif-list {
  max-height: 350px;
  overflow-y: auto;
}

.notif-item {
  margin: 5px 0;
  border-radius: 8px;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
  background: rgba(70, 70, 70, 0.5);
  border-left: 3px solid var(--primary-color);
}

.notif-item p {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-color);
}

.notif-item small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notif-item.empty {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-muted);
  cursor: default;
}

.notif-item.empty:hover {
  background: transparent;
}

/* ===================== Confirmation Button ===================== */
.btn-confirming {
  background: #ff4757 !important;
  color: white !important;
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}