/* ---------- BASE TYPOGRAPHY ---------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- BUTTON & FORM FOCUS STATES ---------- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ---------- BLINKING ALERT (EMERGENCY CONTACT) ---------- */
.blink-alert {
    animation: blink 1.2s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }
}

/* ---------- CARD HOVER ANIMATION ---------- */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .card:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    /* ---------- HERO CARD STYLE ---------- */
    .card.hero-card {
        border-radius: 1rem;
        background: linear-gradient(135deg, #212529, #343a40);
        overflow: hidden;
        color: #fff;
    }

        .card.hero-card:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

/* ---------- GLOBAL BACKGROUND ---------- */
body.app-body {
    background: linear-gradient( 270deg, rgba(25, 135, 84, 0.7), /* green with 70% opacity */
    rgba(255, 193, 7, 0.7), /* yellow with 70% opacity */
    rgba(220, 53, 69, 0.7), /* red with 70% opacity */
    rgba(13, 110, 253, 0.7) /* blue with 70% opacity */
    );
    background-size: 800% 800%;
    animation: gradientShift 60s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------- FOOTER ---------- */
footer {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
}

/* ---------- RESPONSIVENESS ---------- */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .blink-alert {
        font-size: 0.9rem;
    }
}
