/* Custom Global Variables for Consistent Theming */
:root {
    --primary-color: #0f172a; /* Sleek slate black */
    --accent-color: #0284c7; /* Modern tech blue */
    --text-main: #334155; /* Soft dark grey for readable text */
    --bg-light: #f8fafc; /* Clean off-white background */
    --transition-smooth: all 0.25s ease-in-out;
}

/* Global Reset Tweaks */
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Navigation Overhaul */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    transition: var(--transition-smooth);
}

    .navbar-brand:hover {
        color: var(--accent-color) !important;
    }

/* Modern Hover States for Menu Links */
.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition-smooth) !important;
}

    .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.08);
    }

/* Interactive Components & Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
    }

/* Upgraded Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Form Fields & Inputs Polish */
.form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    transition: var(--transition-smooth);
}

    .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
    }

/* Sticky Custom Button Overrides */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

    .btn-primary:hover {
        background-color: #0369a1;
        border-color: #0369a1;
        transform: translateY(-1px);
    }
/* Truncates long text smoothly to exactly 3 lines with an automatic ellipsis (...) */
.product-description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em; /* Ensures empty or short text doesn't shrink card dimensions */
}
/* Administrative Console Custom Visual Polish Utilities */
.blink-animation {
    animation: blinker-glow 2s linear infinite;
}

@keyframes blinker-glow {
    50% {
        opacity: 0.4;
    }
}

.btn-xs {
    padding: 0.2rem 0.4rem;
    font-size: 0.78rem;
    border-radius: 0.25rem;
}
/* Core Flexbox Sticky Footer Fix */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* Forces the rendering container to absorb scroll space and push footer down */
.flex-grow-1 {
    flex: 1 0 auto !important;
    padding-bottom: 4rem !important; /* FIXED: Physical boundary shield so content never touches the banner */
}

footer {
    flex-shrink: 0;
    width: 100% !important;
    position: static !important; /* FIXED: Disables relative layer floating traps completely */
    clear: both !important;
    margin-top: auto !important; /* Absolute structural push safeguard */
}
