:root {
    --primary-color: #0b2c61;
    --secondary-color: #0a2350;
    --accent-color: #ffb703;
    --light-bg: #f4f6fb;
    --dark-text: #1e293b;
    --muted-text: #64748b;
    --border-color: #e5e7eb;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(11, 44, 97, 0.1);
}

.navbar.scrolled {
    background: rgba(11, 44, 97, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    margin-right: 0;
    padding: 0;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(5deg) scale(1.1);
}

.brand-text {
    color: white;
    font-size: 1.3rem;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--accent-color);
    background: rgba(255, 183, 3, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 3, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Navbar Collapse */
.navbar-collapse {
    flex-grow: 1;
}

/* Navbar Menu */
.navbar-nav {
    gap: 5px;
    margin: 0 auto;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 183, 3, 0.2);
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Right Side Actions */
.navbar .d-flex {
    gap: 12px;
    margin-left: 20px;
}

/* Notification Button */
.btn-notif {
    position: relative;
    background: rgba(255, 183, 3, 0.15);
    border: 2px solid rgba(255, 183, 3, 0.3);
    color: var(--accent-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-notif:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.btn-notif i {
    font-size: 1.1rem;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

/* Profile Button */
.btn-profile {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-profile i {
    font-size: 1.1rem;
}

/* Notification Dropdown */
.notif-dropdown {
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 10px;
}

.dropdown-header {
    padding: 12px 15px;
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.notif-item:hover {
    background: var(--light-bg);
}

.notif-item.unread {
    background: rgba(255, 183, 3, 0.1);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notif-icon.peminjaman {
    background: var(--primary-color);
}

.notif-icon.pengembalian {
    background: var(--success-color);
}

.notif-icon.info {
    background: var(--warning-color);
}

.notif-content strong {
    font-size: 0.9rem;
    color: var(--dark-text);
    display: block;
    margin-bottom: 4px;
}

.notif-content p {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 4px;
}

.notif-content small {
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* ========== HERO SECTION ========== */
.hero-dashboard {
    min-height: 70vh;
    background: url('../img/gedung.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-dashboard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 44, 97, 0.85) 0%, rgba(10, 35, 80, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.text-accent {
    background: linear-gradient(to right, var(--accent-color), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 8px 25px rgba(255, 183, 3, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 183, 3, 0.6);
    color: var(--primary-color);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(11, 44, 97, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 44, 97, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #22c55e 100%);
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--muted-text);
    margin: 0;
    font-weight: 500;
}

/* ========== INFO SECTION ========== */
.info-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-top: 15px;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(11, 44, 97, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(11, 44, 97, 0.15);
}

.facility-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-body {
    padding: 20px;
    text-align: center;
}

.facility-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.facility-desc {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin: 0;
}

/* Button Custom */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(11, 44, 97, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(11, 44, 97, 0.4);
    color: white;
}

/* ========== POPUP NOTIFIKASI ========== */
#notifPopup {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
    width: 100%;
}

.notif-popup-item {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notif-popup-item.peminjaman {
    border-left-color: var(--primary-color);
}

.notif-popup-item.pengembalian {
    border-left-color: var(--success-color);
}

.notif-popup-item.info {
    border-left-color: var(--warning-color);
}

.notif-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notif-popup-header strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.notif-popup-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--muted-text);
    line-height: 1;
    transition: color 0.3s ease;
}

.notif-popup-close:hover {
    color: var(--danger-color);
}

.notif-popup-body {
    font-size: 0.9rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notif-popup-time {
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* ========== FOOTER SECTION ========== */
.footer-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-section .container {
    max-width: 1200px;
}

/* KOLOM KIRI: E-Fasilitas */
.footer-section .footer-about {
    text-align: left;
}

.footer-section .footer-about .footer-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section .footer-about p {
    max-width: 100%;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.15);
    border: 2px solid rgba(255, 183, 3, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* KOLOM TENGAH: Link Cepat */
.footer-section .footer-links {
    text-align: center;
}

.footer-section .footer-links .footer-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section .footer-links ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.footer-section .footer-links ul li {
    margin-bottom: 12px;
}

.footer-section .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-section .footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section .footer-links a i {
    font-size: 0.8rem;
}

/* KOLOM KANAN: Kontak */
.footer-section .footer-contact {
    text-align: right;
}

.footer-section .footer-contact .footer-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section .footer-contact ul {
    padding-right: 0;
    list-style: none;
    margin: 0;
}

.footer-section .footer-contact ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-size: 0.95rem;
    gap: 8px;
}

.footer-section .footer-contact i {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Footer Divider */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    /* Navbar */
    .navbar-nav {
        margin-top: 15px;
        gap: 5px;
    }

    .nav-link {
        padding: 10px 15px !important;
    }

    .navbar .d-flex {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }

    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Navbar */
    .brand-text {
        font-size: 1.1rem;
    }

    .navbar-logo {
        width: 40px;
        height: 40px;
    }

    .btn-profile span {
        display: none;
    }

    .btn-profile {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    #notifPopup {
        right: 10px;
        left: 10px;
        max-width: 100%;
    }

    .notif-dropdown {
        width: 300px;
    }

    /* Footer Mobile: Semua Center */
    .footer-section {
        padding: 40px 0 20px;
        margin-top: 50px;
    }

    .footer-section .footer-about,
    .footer-section .footer-links,
    .footer-section .footer-contact {
        text-align: center !important;
        margin-bottom: 30px;
    }

    .footer-section .footer-about .footer-title,
    .footer-section .footer-links .footer-title,
    .footer-section .footer-contact .footer-title {
        text-align: center !important;
    }

    .footer-section .footer-about p {
        text-align: center !important;
    }

    .social-links {
        justify-content: center !important;
    }

    .footer-section .footer-links ul,
    .footer-section .footer-contact ul {
        text-align: center !important;
    }

    .footer-section .footer-contact ul li {
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-divider {
        margin: 30px 0 15px;
    }
}
