html {
    font-size: 14px;
    height: 100%;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make main content area flex and grow to fill available space */
main[role="main"] {
    flex: 1 0 auto;
}

/* Container wrapper for pages that don't use main directly */
.container:has(main) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.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;
}

/* ========================================
   FOOTER STYLING
   ======================================== */
/* Ensure footer stays at bottom for both layout types */
.shop-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* For _Layout.cshtml simple footer */
.footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ========================================
   ADMIN DROPDOWN STYLING
   ======================================== */

/* Admin dropdown container */
.admin-section .dropdown-menu {
    min-width: 200px;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

/* Admin dropdown items */
.admin-section .dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.15s ease-in-out;
}

    .admin-section .dropdown-item:hover,
    .admin-section .dropdown-item:focus {
        background-color: #f8f9fa;
        color: #212529;
    }

    /* Icon styling in dropdown */
    .admin-section .dropdown-item i {
        width: 1.25rem;
        text-align: center;
        margin-right: 0.75rem;
        font-size: 0.875rem;
        color: #6c757d;
        flex-shrink: 0;
    }

    /* Icon color changes on hover */
    .admin-section .dropdown-item:hover i,
    .admin-section .dropdown-item:focus i {
        color: #495057;
    }

    /* Specific icon colors */
    .admin-section .dropdown-item i.fa-tachometer-alt {
        color: #0d6efd;
    }

    .admin-section .dropdown-item i.fa-shoe-prints {
        color: #198754;
    }

    .admin-section .dropdown-item i.fa-boxes {
        color: #fd7e14;
    }

    .admin-section .dropdown-item i.fa-sign-out-alt {
        color: #dc3545;
    }

    /* Maintain icon colors on hover */
    .admin-section .dropdown-item:hover i.fa-tachometer-alt,
    .admin-section .dropdown-item:focus i.fa-tachometer-alt {
        color: #0a58ca;
    }

    .admin-section .dropdown-item:hover i.fa-shoe-prints,
    .admin-section .dropdown-item:focus i.fa-shoe-prints {
        color: #146c43;
    }

    .admin-section .dropdown-item:hover i.fa-boxes,
    .admin-section .dropdown-item:focus i.fa-boxes {
        color: #e8690b;
    }

    .admin-section .dropdown-item:hover i.fa-sign-out-alt,
    .admin-section .dropdown-item:focus i.fa-sign-out-alt {
        color: #b02a37;
    }

/* Dropdown divider styling */
.admin-section .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #dee2e6;
}

/* ========================================
   BRAND LOGO STYLING
   ======================================== */
.brand-logo {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

/* Clean tagline styling */
.brand-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    /*margin-top: 0.25rem;*/
}

/* Ensure brand section maintains proper alignment */
.brand-section .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    /* For centered layout (Option 1) */
    .brand-section .brand-link.text-center {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-logo {
        height: 40px;
        max-width: 160px;
    }

    .brand-tagline {
        font-size: 0.75rem;
    }

    /* On mobile, always stack vertically */
    .brand-section .brand-link {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 35px;
        max-width: 140px;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }
}


/* ========================================
   GLOBAL TOASTER SYSTEM
   ======================================== */
#toaster-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none;
}

.toaster {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

    .toaster.removing {
        animation: slideOut 0.3s ease-in forwards;
    }

.toaster-success {
    border-left: 4px solid #198754;
}

.toaster-error {
    border-left: 4px solid #dc3545;
}

.toaster-info {
    border-left: 4px solid #0d6efd;
}

.toaster-warning {
    border-left: 4px solid #ffc107;
}

.toaster-icon {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.toaster-success .toaster-icon {
    color: #198754;
}

.toaster-error .toaster-icon {
    color: #dc3545;
}

.toaster-info .toaster-icon {
    color: #0d6efd;
}

.toaster-warning .toaster-icon {
    color: #ffc107;
}

.toaster-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toaster-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
}

    .toaster-close:hover {
        color: #495057;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
