/* =========================================================
   1. BRAND VARIABLES & CORE TYPOGRAPHY
   ========================================================= */
:root {
    /* Brand Palette */
    --brand-kit: #1e293b; /* Dark Navy/Black */
    --brand-ly: #f97316; /* Vibrant Orange */
    --brand-acc: #10b981; /* Emerald Green */
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-ui);
}
main {
    flex: 1; /* This pushes the footer down */
}


/* =========================================================
   2. ARCHITECTURAL LAYOUT (90% WIDTH & STICKY FOOTER)
   ========================================================= */

/* Enforce 90% width on all major containers */
.kitly-layout-wrapper,
.navbar > .container,
.navbar > .container-fluid {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}




/* The Footer: Stays at bottom, never floats over content */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 5px 0;
}


/* =========================================================
   3. NAVIGATION & BRANDING
   ========================================================= */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.brand-logotype {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
}

.brand-letter-k {
    height: 0.75em;
    width: auto;
    margin-right: 1px;
    align-self: center;
    transform: translateY(2px);
}

.text-kit {
    color: var(--brand-kit);
}

.text-ly {
    color: var(--brand-ly);
}

.nav-link {
    transition: color 0.2s ease;
    font-weight: 500;
}

    .nav-link:hover {
        color: var(--brand-ly) !important;
    }

/* =========================================================
   4. BOOTSTRAP OVERRIDES
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Buttons */
.btn-primary, .bg-primary {
    background-color: var(--brand-ly) !important;
    border-color: var(--brand-ly) !important;
    color: #fff !important;
}

    .btn-primary:hover {
        background-color: #ea580c !important;
        border-color: #ea580c !important;
    }

.btn-secondary, .bg-secondary {
    background-color: var(--brand-kit) !important;
    border-color: var(--brand-kit) !important;
}

.btn-success, .bg-success {
    background-color: var(--brand-acc) !important;
    border-color: var(--brand-acc) !important;
}

.btn-outline-primary {
    color: var(--brand-ly) !important;
    border-color: var(--brand-ly) !important;
}

    .btn-outline-primary:hover {
        background-color: var(--brand-ly) !important;
        color: #fff !important;
    }

/* =========================================================
   5. AUTH & ACCOUNT COMPONENTS
   ========================================================= */
.auth-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.auth-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--brand-ly);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    margin: 1.5rem 0;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .auth-divider span {
        padding: 0 1rem;
        font-weight: 500;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

/* Social Buttons */
.btn-social {
    color: white !important;
    font-weight: 500;
    transition: transform 0.2s;
}

    .btn-social:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

.btn-google {
    background-color: #db4437;
    border-color: #db4437;
}

.btn-facebook {
    background-color: #4267B2;
    border-color: #4267B2;
}

.btn-twitter {
    background-color: #000000;
    border-color: #000000;
}

/* Settings Nav */
.nav-pills .nav-link {
    display: flex;
    align-items: center;
    color: var(--brand-kit);
    font-weight: 500;
    transition: all 0.15s;
}

    .nav-pills .nav-link.active {
        background-color: var(--brand-ly) !important;
    }

/* Step Indicators & Code blocks */
.bg-kit {
    background-color: var(--brand-kit) !important;
}

kbd.bg-kit {
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand-ly);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Input Icons */
.input-group-text {
    background-color: transparent;
    border-right: none;
    color: var(--brand-kit);
}

/* Dashboard Animations */
.hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

/* =========================================================
   KITLY TOAST SYSTEM
   ========================================================= */
#kitly-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.kitly-toast {
    min-width: 280px;
    background-color: var(--brand-kit); /* Navy */
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--brand-acc); /* Green accent */
    font-family: var(--font-ui);
    animation: toastSlideIn 0.3s ease-out forwards;
}

    .kitly-toast.success {
        border-left-color: var(--brand-acc);
    }

    .kitly-toast.warning {
        border-left-color: var(--brand-ly);
    }

    .kitly-toast.error {
        border-left-color: #ef4444;
    }

    .kitly-toast i {
        font-size: 1.25rem;
    }

    .kitly-toast.success i {
        color: var(--brand-acc);
    }

    .kitly-toast.warning i {
        color: var(--brand-ly);
    }

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(20%);
        opacity: 0;
    }
}

.hover-orange:hover {
    color: var(--brand-ly) !important;
    transform: scale(1.2);
    transition: all 0.2s;
}

.smallest {
    font-size: 0.7rem;
}

/* =========================================================
   HEADER QUICK BAR (TRUE CENTER)
   ========================================================= */

@media (min-width: 992px) {
    /* Ensure the parent container can anchor the absolute center */
    .navbar-collapse {
        position: relative;
    }

    .navbar-quickbar-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        display: flex !important;
    }
}

/* Quick Bar Pill Styling */
#quickBar {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    #quickBar:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        background-color: #fff;
    }

.hover-orange:hover {
    color: var(--brand-ly) !important;
    transform: translateY(-2px);
    transition: all 0.2s;
}