@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Poppins:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700;900&display=swap');

:root {
    --dark-teal: #0A3B3C;
    --darker-teal: #052627;
    --gold: #D4AF37;
    --cream: #FDFBF7;
    --beige: #F5F5DC;
    --taupe: #8B8076;
    --warm-white: #FAF9F6;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important;
}

/* PORTAL STYLES */
.portal-container {
    min-height: 100vh;
    display: flex;
    background: url('../images/backgroundlogin.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    filter: brightness(0.85);
    padding: 2rem 0;
}

.portal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(4px);
}

/* LANDING PAGE STYLES */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    background-attachment: fixed;
    overflow: hidden;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
    padding: 4rem 2rem;
    color: #000000;
    text-align: left;
}

.landing-header {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-brand {
    display: inline-flex;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: none;
    color: #00BFFF;
    background: transparent;
    text-align: center;
}

.landing-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 12ch;
    color: #000000;
}

.landing-title span {
    color: #000000;
    font-weight: 800;
}

.landing-text {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000000;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.landing-btn-primary {
    background: rgba(212, 175, 55, 0.95);
    color: #111111;
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.25);
}

.landing-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.landing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .landing-content {
        padding: 3rem 1.5rem;
    }

    .landing-title {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }

    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.portal-side {
    flex: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem 2rem;
    transition: all 0.5s ease;
    overflow-y: auto;
    max-height: 100%;
}

.portal-side.admin {
    border-right: 1px solid var(--glass-border);
}

.portal-title {
    color: var(--gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.portal-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.portal-subtitle {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    color: #111;
}

.auth-card.glass {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 24px !important;
}

.auth-card h3 {
    color: #111 !important;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Inputs and placeholders inside auth card */
.auth-card .input-group i {
    color: rgba(17, 17, 17, 0.7);
}

.auth-card .input-group input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: #111;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-card .input-group input::placeholder {
    color: rgba(0, 0, 0, 0.55);
}

.auth-card .password-container {
    position: relative;
    width: 100%;
    display: block;
}

.auth-card .password-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(17, 17, 17, 0.6);
    z-index: 10;
    pointer-events: none;
}

.auth-card .password-container input {
    width: 100%;
    padding: 12px 45px 12px 45px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 12px !important;
    color: #111 !important;
    outline: none !important;
    display: block;
    box-sizing: border-box;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.auth-card .password-container input::placeholder {
    color: rgba(0, 0, 0, 0.55) !important;
}

.auth-card .toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(17, 17, 17, 0.6);
    font-size: 1.1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card .toggle-password i {
    position: static !important;
    transform: none !important;
    left: auto !important;
    color: inherit !important;
}

.auth-card .toggle-password:hover {
    color: rgba(17, 17, 17, 0.8);
}

/* Links and register text in the card should be dark */
.auth-card .register-link,
.auth-card .register-link a,
.auth-card p,
.auth-card label {
    color: #000;
}

/* Keep the login button text white (btn-teal already uses !important), ensure other buttons inherit black if present */
.auth-card .btn-teal {
    color: #ffffff !important;
}

/* Mode toggle buttons styling */
.auth-card button[type="button"] {
    transition: all 0.3s ease;
}

.auth-card button[type="button"]:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.auth-card button[type="button"]:focus {
    outline: none;
}



.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cream);
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    background: var(--taupe);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    outline: none;
}

.password-container {
  position: relative;
  width: 100%;
  display: block;
}

.password-container i.fa-lock {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  z-index: 10;
  pointer-events: none;
}

.password-container input {
  width: 100%;
  padding: 12px 45px 12px 45px !important; /* Ruang untuk gembok (kiri) dan mata (kanan) */
  border: none;
  border-radius: 8px;
  background-color: #7d7266 !important;
  color: white !important;
  display: block;
  box-sizing: border-box;
}

.password-container input::placeholder {
  color: #ccc !important;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px; /* Tetap di dalam kolom sebelah kanan */
  transform: translateY(-50%);
  cursor: pointer;
  color: #ccc;
  font-size: 1.1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mencegah ikon mata dipaksa ke kiri oleh style .input-group i */
.toggle-password i {
  position: static !important;
  transform: none !important;
  left: auto !important;
  color: inherit !important;
}

.toggle-password:hover {
    color: white;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.btn-teal {
    width: 100%;
    padding: 12px;
    background: var(--dark-teal);
    color: #ffffff !important;
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-teal:hover {
    background: var(--darker-teal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-outline {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Portal page text colors - make everything black except login button */
.portal-side {
    color: #000;
}

.portal-side h3,
.portal-side h1,
.portal-side h2 {
    color: #000;
}

.portal-side p,
.portal-side label,
.portal-side .register-link,
.portal-side .register-link a {
    color: #000;
}

/* Mode toggle buttons in portal */
.portal-side button[type="button"] {
    color: #000 !important;
    border-color: rgba(0,0,0,0.2) !important;
}

.portal-side button[type="button"]:hover {
    background: rgba(0,0,0,0.05);
}

/* Eye icon for password toggle */
.portal-side .toggle-password i,
.portal-side .password-container .toggle-password i {
    color: #000 !important;
}

.portal-side .toggle-password {
    color: #000 !important;
}

/* Ensure login button stays white */
.portal-side .btn-teal {
    color: #ffffff !important;
}

/* DASHBOARD STYLES */
.dashboard-container {
    display: flex;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(208,232,242,0.7) 0%, rgba(232,244,248,0.7) 50%, rgba(255,255,255,0.7) 100%);
}

.dashboard-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../images/background-dashboard.jpg') center/cover no-repeat;
    background-attachment: fixed;
    filter: brightness(0.55) saturate(0.9) blur(1px);
}

/* subtle overlay for readability */
.dashboard-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.22));
}

.dashboard-container.sidebar-collapsed .sidebar {
    width: 72px;
    min-width: 72px;
    padding: 1.25rem 0;
    overflow: visible;
}

.dashboard-container.sidebar-collapsed .main-content {
    padding-left: 1.5rem;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: var(--dark-teal);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-right: 1rem;
}

.sidebar-toggle:hover {
    background: rgba(10, 59, 60, 0.05);
    transform: translateY(-1px);
}

.sidebar-toggle i,
.sidebar-toggle .fas,
.theme-toggle-btn i,
.theme-toggle-btn .fas,
.description-toggle i,
.reminder-toggle i,
.toggle-password i {
    font-size: 0.75rem !important;
    line-height: 1;
}

.theme-toggle-btn {
    padding: 0.45rem 0.8rem;
}

.sidebar .sidebar-top .sidebar-toggle {
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Centered profile section */
.sidebar .profile-section.centered {
    padding: 1rem 1.25rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar .profile-section.centered .profile-img {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin: 0 auto 0.75rem auto;
    object-fit: cover;
}

/* When sidebar is collapsed: make profile image small and circular */
.dashboard-container.sidebar-collapsed .sidebar .profile-section.centered .profile-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border-width: 1px !important;
    margin: 0 auto 0.5rem auto !important;
}

.dashboard-container.sidebar-collapsed .sidebar .profile-section.centered .profile-name,
.dashboard-container.sidebar-collapsed .sidebar .profile-section.centered .profile-role,
.dashboard-container.sidebar-collapsed .sidebar .profile-section.centered .profile-edit-btn.small {
    display: none !important;
}

.sidebar .profile-section.centered .profile-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.sidebar .profile-section.centered .profile-role {
    display: block;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.4rem auto 0.85rem;
    width: max-content;
}

.profile-edit-btn.small {
    width: 140px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    margin: 0 auto;
}

.theme-toggle-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #1f2937;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* Back to Landing button in header */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212,175,55,0.18);
}

/* Absolute Back button for login/portal page */
.back-home-absolute {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 9999;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06); /* subtle transparent circle */
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.back-home-absolute i {
    font-size: 16px;
}

/* Visually hide but keep for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .back-home-absolute {
        top: 10px;
        left: 10px;
        width: 34px;
        height: 34px;
    }
}

body:not(.dark-mode) .dashboard-container,
body:not(.dark-mode) .dashboard-container * {
    color: #000 !important;
}

body:not(.dark-mode) .sidebar {
    background-color: #0d1e53;
    color: #ffffff !important;
}

body:not(.dark-mode) .sidebar .nav-link,
body:not(.dark-mode) .sidebar .nav-link .fas {
    color: #ffffff !important;
}

body:not(.dark-mode) .nav-link,
body:not(.dark-mode) .profile-edit-btn,
body:not(.dark-mode) .notification-button,
body:not(.dark-mode) .theme-toggle-btn,
body:not(.dark-mode) .notification-item,
body:not(.dark-mode) .notification-header,
body:not(.dark-mode) .notification-empty,
body:not(.dark-mode) .search-bar input,
body:not(.dark-mode) .search-bar i,
body:not(.dark-mode) .greeting h2,
body:not(.dark-mode) .dashboard-top h1,
body:not(.dark-mode) .dashboard-top p,
body:not(.dark-mode) .page-subtitle,
body:not(.dark-mode) .page-description,
body:not(.dark-mode) .nav-badge {
    color: #000 !important;
}

body:not(.dark-mode) .profile-name,
body:not(.dark-mode) .profile-email,
body:not(.dark-mode) .profile-role {
    color: #ffffff !important;
}

body:not(.dark-mode) .profile-edit-btn,
body:not(.dark-mode) .notification-button,
body:not(.dark-mode) .theme-toggle-btn,
body:not(.dark-mode) .search-bar input {
    background: #ffffff !important;
    color: #000 !important;
}

body:not(.dark-mode) .main-content,
body:not(.dark-mode) .glass,
body:not(.dark-mode) .notification-dropdown,
body:not(.dark-mode) .profile-edit-card {
    background: #ffffff !important;
}

body:not(.dark-mode) table,
body:not(.dark-mode) th,
body:not(.dark-mode) td {
    color: #000 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.dark-mode {
    background: #020617;
    color: #e5e7eb;
}

body.dark-mode .dashboard-container {
    background-color: #020617;
}

body.dark-mode .dashboard-container::before {
    background: none;
    filter: none;
}

body.dark-mode .sidebar {
    background-color: #0d1e53;
    color: #e5e7eb;
}

body.dark-mode .profile-section {
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .profile-name,
body.dark-mode .profile-edit-btn,
body.dark-mode .profile-role {
    color: #f8fafc;
}

body.dark-mode .profile-edit-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

body.dark-mode .profile-email {
    color: rgba(255,255,255,0.72);
}

body.dark-mode .nav-link {
    color: #e5e7eb;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background: #134e57;
    border-left-color: #d4af37;
}

body.dark-mode .main-content {
    background: #0f1724;
    color: #e5e7eb;
}

body.dark-mode .header,
body.dark-mode .dashboard-top,
body.dark-mode .glass,
body.dark-mode .notification-dropdown,
body.dark-mode .profile-edit-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .notification-button {
    background: #1f2937;
    color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

body.dark-mode .notification-item {
    background: #111827;
    color: #e5e7eb;
}

body.dark-mode .notification-item:hover {
    background: #1f2937;
}

body.dark-mode .notification-header,
body.dark-mode .notification-empty {
    color: #cbd5e1;
}

body.dark-mode .search-bar input {
    background: #12263a;
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
}

body.dark-mode .search-bar i {
    color: #94a3b8;
}

body.dark-mode .greeting h2,
body.dark-mode .dashboard-top h1,
body.dark-mode .dashboard-top p,
body.dark-mode .dashboard-top span,
body.dark-mode .dashboard-top a {
    color: #e5e7eb !important;
}

body.dark-mode .nav-badge {
    background: #ef4444;
}

body.dark-mode .sidebar-toggle {
    border-color: rgba(255,255,255,0.18);
    color: #e5e7eb;
}

body.dark-mode .sidebar-toggle:hover {
    background: rgba(255,255,255,0.06);
}

body.dark-mode .theme-toggle-btn {
    background: #1f2937;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.12);
}

body.dark-mode .theme-toggle-btn:hover {
    background: #253244;
}

body.dark-mode .btn-teal {
    color: #ffffff;
}

body.dark-mode table,
body.dark-mode table th,
body.dark-mode table td {
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.12);
}

body.dark-mode .dashboard-page.admin-dashboard .table-card {
    background: #bae6fd;
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

body.dark-mode .dashboard-page.admin-dashboard .table-card th,
body.dark-mode .dashboard-page.admin-dashboard .table-card td,
body.dark-mode .dashboard-page.admin-dashboard .table-card .table-header h2,
body.dark-mode .dashboard-page.admin-dashboard .table-card .table-header p,
body.dark-mode .dashboard-page.admin-dashboard .table-card .table-header a {
    color: #ffffff;
}

body.dark-mode .dashboard-page.admin-dashboard .table-card thead {
    background: rgba(255, 255, 255, 0.16);
}

body.dark-mode .dashboard-page.admin-dashboard .table-card tr:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode .dashboard-page.admin-dashboard .table-card th,
body.dark-mode .dashboard-page.admin-dashboard .table-card td {
    border-color: rgba(255, 255, 255, 0.14);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.header .search-bar {
    flex: 1;
    max-width: 480px;
}

.greeting {
    flex: 1;
    color: #ffffff;
}

.greeting h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

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

.notification-menu {
    position: relative;
}

.notification-button {
    border: none;
    background: #fff;
    color: #1f2937;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.notification-badge {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    padding: 0 0.4rem;
    font-weight: 700;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    width: 320px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.notification-menu.open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 0.75rem 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #e2e8f0;
}

.notification-item i {
    color: #2563eb;
    min-width: 28px;
    text-align: center;
}

.notification-empty {
    padding: 1rem 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-top h1,
.dashboard-top p,
.dashboard-top span,
.dashboard-top a {
    color: #ffffff !important;
}

.dashboard-top.user-top h1 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.page-description {
    margin: 0;
    color: #d5d5d5;
    max-width: 520px;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-charts .chart-container {
    min-height: 250px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: #ffffff;
}

.book-list {
    display: grid;
    gap: 1rem;
}

.book-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(13, 30, 34, 0.03);
}

    .collection-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .collection-card {
        padding: 1.5rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(13, 30, 34, 0.06);
        border: 1px solid rgba(220,220,220,0.6);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .collection-card h3 {
        margin: 0 0 0.5rem;
        color: #ffffff;
        font-size: 1.05rem;
    }

    .collection-card p {
        margin: 0;
        color: #d5d5d5;
        line-height: 1.5;
        font-size: 0.93rem;
    }

    .collection-card .book-meta {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        color: #b0b0b0;
        font-size: 0.85rem;
    }

    .collection-card .tag.small {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }


.tag.due {
    background: rgba(10, 59, 60, 0.08);
    color: var(--dark-teal);
}

.tag.due-soon {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
}

.tag.returned {
    background: rgba(45, 138, 78, 0.12);
    color: #2d8a4e;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    background-color: #0d1e53;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 0;
    transition: width 0.3s ease, padding 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.profile-section {
    padding: 0 1.2rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 1rem;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold);
}

.profile-email {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 4rem);
    margin: 0.85rem auto 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.18);
    color: var(--cream);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Sidebar nav links layout */
.sidebar .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 1rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
}

.sidebar .nav-link i,
.sidebar .nav-link .fas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 24px;
    min-width: 24px;
    line-height: 1;
    text-align: center;
}

/* Collapsed sidebar: show icons only */
.dashboard-container.sidebar-collapsed .sidebar {
    width: 72px;
    min-width: 72px;
    padding: 1.25rem 0;
}

.dashboard-container.sidebar-collapsed .sidebar .profile-section {
    padding: 0.5rem 0;
}

.dashboard-container.sidebar-collapsed .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0;
}

.dashboard-container.sidebar-collapsed .profile-name,
.dashboard-container.sidebar-collapsed .profile-role,
.dashboard-container.sidebar-collapsed .profile-email,
.dashboard-container.sidebar-collapsed .profile-edit-btn {
    display: none;
}

.dashboard-container.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.6rem 0;
}

.dashboard-container.sidebar-collapsed .nav-link .link-text,
.dashboard-container.sidebar-collapsed .nav-badge {
    display: none;
}

.dashboard-container.sidebar-collapsed .reminder-widget {
    display: flex;
    justify-content: center;
}

.profile-edit-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.profile-edit-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(10, 59, 60, 0.08);
    border: 1px solid rgba(10, 59, 60, 0.08);
}

.profile-edit-card .page-header h2 {
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.profile-edit-card .page-header p {
    margin-bottom: 1.75rem;
    color: #d5d5d5;
}

.profile-photo-preview {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-photo-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.profile-edit-form .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.profile-edit-form .input-group label {
    margin-bottom: 0.6rem;
    color: #ffffff;
    font-weight: 600;
}

.profile-edit-form .input-group input[type="text"],
.profile-edit-form .input-group input[type="email"],
.profile-edit-form .input-group input[type="password"],
.profile-edit-form .input-group input[type="file"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #333;
}

.profile-edit-form .input-group small {
    color: #b0b0b0;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.profile-edit-form .alert {
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.success-alert {
    background: #e6f7ed;
    color: #1d6a3f;
    border: 1px solid #b7e4c7;
}

.error-alert {
    background: #ffecec;
    color: #8a1f1f;
    border: 1px solid #f4c6c6;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 2rem;
    color: var(--cream);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.98rem;
}

.nav-link i {
    margin-right: 18px;
    width: 24px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background: var(--dark-teal);
    border-left: 4px solid var(--gold);
}

/* Book quick search inside sidebar */
.book-search-item {
    padding: 0 1.25rem 1rem 1.25rem;
}
.book-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.book-search-input {
    flex: 1 1 auto;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}
.book-search-input::placeholder { color: rgba(255,255,255,0.6); }
.book-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.18);
    background: rgba(212,175,55,0.12);
    color: #fff;
    cursor: pointer;
}
.book-search-btn i { width: 16px; }

/* Hide header search-bar if still present elsewhere */
.header .search-bar { display: none !important; }

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    color: #000;
}

.search-bar {
    position: relative;
    width: 350px;
}

.nav-badge {
    display: inline-block;
    min-width: 20px;
    padding: 0.08rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #dc2626;
    border-radius: 999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #dc2626;
    border-radius: 999px;
    padding: 0 0.4rem;
    margin-left: 0.5rem;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 25px;
    border: 1px solid #ddd;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.greeting h2 {
    color: #000;
    font-weight: 700;
}

/* Info Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--dark-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-right: 1.2rem;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-teal);
}

/* Charts Placeholder */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-height: 300px;
}

.chart-header {
    margin-bottom: 1.5rem;
    color: var(--dark-teal);
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(rgba(10, 59, 60, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(10, 59, 60, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px dashed var(--taupe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taupe);
}

.register-link {
    margin-top: 20px;
    text-align: center;
}

.dashboard-page {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #0f3460, #116a7b);
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 24px 60px rgba(4, 34, 63, 0.15);
}

.dashboard-hero-card h1 {
    margin: 0.5rem 0 0;
    font-size: 2.4rem;
    line-height: 1.1;
}

.hero-label {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hero-badges span {
    background: rgba(255,255,255,0.12);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #e0f7ff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
}

.stat-icon-primary { background: #105d80; }
.stat-icon-secondary { background: #0a4376; }
.stat-icon-tertiary { background: #0f4a8d; }
.stat-icon-warning { background: #d97706; }

.stat-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.stat-card h3 {
    margin: 0.5rem 0 0;
    font-size: 1.65rem;
    color: #0f172a;
}

.alert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.alert-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.alert-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.alert-card-title i {
    color: #0f3460;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.alert-list li {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    background: #f8fafc;
    display: grid;
    gap: 0.35rem;
}

.alert-list li strong {
    color: #0f172a;
}

.alert-list span {
    color: #475569;
    font-size: 0.95rem;
}

.alert-empty {
    margin: 0;
    color: #64748b;
}

.table-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.table-header p {
    margin: 0.5rem 0 0;
    color: #64748b;
}

.table-header a {
    color: #0f3460;
    text-decoration: none;
    font-weight: 600;
}

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

.table-card th,
.table-card td {
    padding: 1rem 0.9rem;
    text-align: left;
    color: #334155;
}

.table-card thead {
    background: #f8fafc;
}

.table-card tr:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.side-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.side-card-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.side-card-header span {
    color: #64748b;
    font-size: 0.95rem;
}

.ai-card textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: 1rem;
    resize: vertical;
    min-height: 120px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ai-card button {
    width: 100%;
    border: none;
    background: #0f3460;
    color: white;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ai-response {
    margin-top: 1rem;
    min-height: 90px;
    border-radius: 18px;
    background: #f8fafc;
    padding: 1rem;
    color: #334155;
    line-height: 1.6;
}

.notification-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.notification-card li {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    color: #334155;
}

.overview-card,
.summary-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.overview-card-header h2,
.section-header h2,
.reminder-section h2,
.recommendation-section h2 {
    margin: 0;
    font-size: 1.3rem;
}

.overview-card-header p,
.section-header p {
    margin: 0.5rem 0 0;
    color: #64748b;
}

.overview-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
    color: #334155;
}

.reminder-section,
.recommendation-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header span,
.section-header a {
    color: #0f3460;
    font-weight: 600;
}

.reminder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reminder-card {
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    min-height: 150px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.reminder-warning {
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.reminder-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

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

.recommend-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
}

.recommend-card h3 {
    margin: 0 0 0.75rem;
}

.recommend-card p {
    margin: 0;
    color: #64748b;
}

.empty-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    color: #475569;
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.summary-card li {
    padding: 0.95rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.summary-card li:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .dashboard-grid,
    .alert-grid,
    .reminder-grid {
        grid-template-columns: 1fr;
    }
}

.register-link p {
    color: #ffffff; /* Warna putih untuk teks instruksi */
    font-size: 0.9rem;
}

.register-link a {
    color: #d4af37; /* Warna emas (Gold) agar senada dengan desain */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.register-link a:hover {
    color: #f0e68c; /* Warna emas lebih terang saat diarahkan kursor */
    text-decoration: underline;
}

/* Notification Styles */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.notification-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.notification-item.unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.notification-item.read {
    opacity: 0.8;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.notification-message {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

.notification-time {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-mark-read,
.btn-delete,
.btn-clear-notifications {
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-mark-read:hover,
.btn-delete:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-delete:hover {
    color: #dc2626;
}

.btn-clear-notifications {
    padding: 0.4rem;
    color: #6b7280;
}

.btn-clear-notifications:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
}

.notification-footer {
    padding: 0.75rem 0.75rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 0.6rem 1rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.btn-view-all:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* Dark mode notification styles */
body.dark-mode .notification-dropdown {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .notification-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

body.dark-mode .notification-item {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

body.dark-mode .notification-item:hover {
    background: #4b5563;
}

body.dark-mode .notification-item.unread {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

body.dark-mode .notification-title {
    color: #f3f4f6;
}

body.dark-mode .notification-message {
    color: #d1d5db;
}

body.dark-mode .notification-time {
    color: #9ca3af;
}

body.dark-mode .notification-empty {
    color: #9ca3af;
}

/* Reminder Widget Styles */
.reminder-widget {
    padding: 1.2rem;
    margin: 1rem 1rem 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reminder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.reminder-header:hover {
    opacity: 0.8;
}

.reminder-header i {
    width: 18px;
    text-align: center;
}

.reminder-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reminder-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reminder-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.reminder-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.reminder-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 0.35rem;
}

.reminder-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reminder-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.reminder-toggle i {
    transition: transform 0.3s ease;
}

.reminder-toggle.open i {
    transform: rotate(180deg);
}

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.reminder-list::-webkit-scrollbar {
    width: 4px;
}

.reminder-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.reminder-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

.reminder-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.reminder-item {
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.reminder-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.reminder-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.reminder-item-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}

.reminder-badge.badge-danger {
    background: #dc2626;
    color: #ffffff;
}

.reminder-badge.badge-warning {
    background: #f59e0b;
    color: #000000;
}

.reminder-badge.badge-info {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
}

.reminder-item-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.reminder-empty {
    text-align: center;
    padding: 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.reminder-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

/* Dark mode reminder widget styles */
body.dark-mode .reminder-widget {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

body.dark-mode .reminder-header {
    color: var(--gold);
}

body.dark-mode .reminder-stat {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .reminder-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.15);
}

body.dark-mode .reminder-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
}

body.dark-mode .reminder-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reminder-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
}

/* LOGO */
.tech-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neon-svg {
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
    transition: all 0.3s ease;
}

.tech-logo-container:hover .neon-svg {
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 1));
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #ffffff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    background: linear-gradient(45deg, #00d2ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}