html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: linear-gradient(to bottom right, #eef2f9, #ffffff);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    line-height: 1.6;
}

/* ======= NAVBAR ======= */
.navbar {
    background: linear-gradient(90deg, #0d6efd, #00b4d8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar a {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffe082 !important;
}

/* ===== Dashboard Title ===== */
h1.dashboard-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0d6efd;
    text-shadow: 2px 2px 10px rgba(13, 110, 253, 0.2);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

/* ===== Cards with Glass Effect ===== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* ===== Card Hover Effect (extra shine) ===== */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 
                0 0 15px rgba(13, 110, 253, 0.3);
}

/* ===== Buttons ===== */
.btn-open {
    background: linear-gradient(90deg, #0066ff, #0099ff);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-open:hover {
    background: linear-gradient(90deg, #0052cc, #0077cc);
    transform: scale(1.07);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ===== Icon Circle Animation ===== */
.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d6efd, #00b4d8);
    color: #fff;
    font-size: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    animation: bounce 0.6s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Dark Mode ===== */
body.dark-mode {
    background: linear-gradient(to bottom right, #1b1b1b, #2a2a2a);
    color: #f0f0f0;
}

.dark-mode .card {
    background: rgba(40, 40, 40, 0.85);
    color: #f0f0f0;
}

.dark-mode .btn-open {
    background: linear-gradient(90deg, #444, #666);
    color: #eee;
}

.dark-mode .navbar {
    background: linear-gradient(90deg, #111, #333);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

footer {
    margin: 0; /* remove extra gap */
    padding: 0; /* optional: keep it slim */
}



