/* =========================
   BASE STYLING
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #E2F0F9;
    --text-main: #000000;
    --text-accent: #DF4C73;
    --outline-main: #286FB4;
    --outline-hover: #1f5b96;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* Remove text selection highlight for buttons */
button, a {
    user-select: none;
}

/* =========================
   NAVBAR
========================= */
.navbar-modern {
    background-color: #ffffff;
    border-bottom: 2px solid var(--outline-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .navbar-modern .navbar-brand {
        font-weight: 700;
        color: var(--outline-main);
    }

    .navbar-modern .nav-link {
        color: var(--text-main);
        font-weight: 500;
    }

        .navbar-modern .nav-link:hover {
            color: var(--text-accent);
        }

/* =========================
   BUTTONS
========================= */
.btn-primary {
    background-color: var(--outline-main);
    border: none;
    transition: all 0.3s ease;
    color: #ffffff;
}

    .btn-primary:hover {
        background-color: var(--outline-hover);
        transform: scale(1.05);
    }

.btn-outline-secondary {
    color: var(--outline-main);
    border-color: var(--outline-main);
}

    .btn-outline-secondary:hover {
        background-color: var(--outline-main);
        color: #ffffff;
        transform: scale(1.05);
    }

/* Rounded pill buttons */
.btn-lg.rounded-pill {
    border-radius: 50px;
}

/* =========================
   HERO SECTION
========================= */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

    .animate-fade-up.delay-100 {
        animation-delay: 0.2s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background blobs */
.blur-3xl {
    filter: blur(120px);
}

/* Hero text */
.display-3 {
    font-weight: 700;
    color: var(--text-main);
}

.text-primary {
    color: var(--text-accent) !important;
}

.badge.bg-primary {
    background-color: var(--outline-main) !important;
    color: #ffffff;
}

/* =========================
   FEATURE CARDS
========================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

    .glass-card:hover {
        transform: translateY(-5px) scale(1.03);
    }

/* Feature icons */
.bi {
    font-size: 3rem;
}

/* Icon color variations */
.text-warning {
    color: #ffb347 !important;
}

.text-info {
    color: #4da3ff !important;
}

.text-success {
    color: #4caf50 !important;
}

/* Secure card gradient */
.bg-primary.text-white {
    background: linear-gradient( 135deg, var(--outline-main) 0%, var(--text-accent) 100% );
    color: #ffffff;
}

/* =========================
   METRICS
========================= */
.border-light {
    border-color: rgba(0,0,0,0.05) !important;
}

h3.fw-bold {
    color: var(--outline-main);
}

/* =========================
   FOOTER
========================= */
.footer-modern {
    background-color: #ffffff;
    border-top: 2px solid var(--outline-main);
    padding: 1.5rem 0;
}

    .footer-modern a {
        color: var(--outline-main);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-modern a:hover {
            color: var(--text-accent);
        }

/* =========================
   LOGIN PAGE STYLING
========================= */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 360px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: #ffffff;
    text-align: center;
    border: 2px solid var(--outline-main);
}

/* Pop-up animation */
.animate-pop-up {
    opacity: 0;
    transform: scale(0.9);
    animation: popUp 0.5s forwards;
}

@keyframes popUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-card h2 {
    margin-bottom: 25px;
    color: var(--text-accent);
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--outline-main);
    box-sizing: border-box;
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--outline-main);
        box-shadow: 0 0 5px rgba(40,111,180,0.5);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-main);
}

.register-text {
    margin-top: 18px;
    font-size: 14px;
}

.register-link {
    text-decoration: underline;
    color: var(--text-accent);
    font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .display-3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .glass-panel {
        margin-top: 2rem;
    }
}

/* =========================
   DASHBOARD / SHORTCUT CARDS
========================= */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.shortcut-card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px; /* fits 3-4 cards in one row on PC */
}

    .shortcut-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }

    /* Card header icon */
    .shortcut-card i {
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }

/* Color variations for icons */
.card-user i {
    color: #DF4C73; /* Accent pink */
}

.card-gatepass i {
    color: #FFB347; /* Orange */
}

.card-locker i {
    color: #32CD32; /* Lime Green */
}

.card-reservation i {
    color: #286FB4; /* Blue */
}

/* Card content */
.shortcut-card h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.shortcut-card p {
    font-size: 0.875rem;
    color: #666666;
    text-align: center;
}

/* Card footer */
.shortcut-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Footer arrow icon color matching card theme */
.card-user .card-footer .bi-arrow-right {
    color: #DF4C73;
}

.card-gatepass .card-footer .bi-arrow-right {
    color: #FFB347;
}

.card-locker .card-footer .bi-arrow-right {
    color: #32CD32;
}

.card-reservation .card-footer .bi-arrow-right {
    color: #286FB4;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

    .animate-fade-up.delay-100 {
        animation-delay: 0.2s;
    }

    .animate-fade-up.delay-200 {
        animation-delay: 0.4s;
    }

    .animate-fade-up.delay-300 {
        animation-delay: 0.6s;
    }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .shortcut-card {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .shortcut-card {
        max-width: 90%;
    }
}

