/* Wick & Bubble - Custom Styles */

:root {
    --bg1: #fff7fb;
    --bg2: #ffeef6;
    --brand: #ec8fb8;
    --brand2: #f7c6d9;
    --ink: #2e2a2f;
    --ink-soft: #6a5f68;
    --accent: #8ad4d1;
    --lav: #c0b5ff;
    --gold: #ffd38a;
    --card: #ffffff;
    --shadow: 0 12px 24px rgba(0,0,0,.08);
    --radius: 18px;
    
    /* Legacy variables for backward compatibility */
    --primary-color: #ec8fb8;
    --secondary-color: #f8f9fa;
    --accent-color: #8ad4d1;
    --text-color: #2e2a2f;
    --light-text: #6a5f68;
    --navbar-link-color: #f8f9fa;
}

body {
    background: radial-gradient(1200px 600px at 10% -10%, var(--bg2), transparent 60%),
                radial-gradient(1000px 600px at 90% 0%, #fdf2ff, transparent 60%),
                var(--bg1);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 143, 184, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand) !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 80px;
    width: auto;
}

.navbar-name {
    height: 35px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--ink) !important;
}

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

/* Hero Section */
.hero-section {
    background: transparent !important;
    color: var(--ink) !important;
    padding: 2.5rem 0 2rem !important;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.hero-subtitle {
    color: var(--ink-soft);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.hero-description {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-description p {
    margin: 0 0 0.75rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px dashed var(--brand2);
    padding: 8px 12px;
    border-radius: 999px;
    color: #b05b82;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Signup Card */
.signup-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 2rem 0;
}

.signup-title {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.signup-subtitle {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}

/* Giveaway Card */
.giveaway-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(120deg, #fff6fb, #fffbe8);
    border: 1px solid #ffe3ef;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.giveaway-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--brand));
    box-shadow: var(--shadow);
    flex-shrink: 0;
}



/* Hero Image */
.hero-image {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background: url('/assets/img/hero.jpg') center top/cover no-repeat;
    filter: saturate(1.05) contrast(1.02);
}

/* Hero row - top align columns on desktop */
.hero-section .row {
    align-items: flex-start;
}

/* Mobile override - center when stacked */
@media (max-width: 991.98px) {
    .hero-section .row {
        align-items: center !important;
    }
}

.hero-image::after {
    content: "Handmade by Rebekah";
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

/* Benefits Section */
.benefits-section {
    margin: 3rem 0;
}

.benefit-card {
    background: var(--card);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.benefit-icon.accent-lav {
    background: linear-gradient(135deg, var(--accent), var(--lav));
}

.benefit-icon.brand-gold {
    background: linear-gradient(135deg, var(--brand), var(--gold));
}

.benefit-icon.lav-accent {
    background: linear-gradient(135deg, var(--lav), var(--accent));
}

.benefit-title {
    font-family: 'Poppins', sans-serif;
    margin: 0.2rem 0 0.3rem;
    font-size: 1.1rem;
}

.benefit-description {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(120deg, #c0b5ff, #8ad4d1);
    color: #fff;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.cta-description {
    margin: 0 0 1rem;
}

/* Homepage primary shop CTA */
.btn-hero-shop {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 36px rgba(236, 143, 184, 0.42), 0 4px 12px rgba(138, 212, 209, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(236, 143, 184, 0.5), 0 6px 16px rgba(138, 212, 209, 0.3);
}

/* Trust strip (homepage) */
.trust-strip-section {
    margin: 0 0 1.5rem;
}

.trust-strip-item {
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.trust-strip-icon {
    font-size: 1.65rem;
    color: var(--brand);
    line-height: 1;
}

.trust-strip-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

.story-photo-card {
    border-radius: var(--radius);
}

.story-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.story-photo-caption {
    background: rgba(255, 255, 255, 0.98);
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.section-title h2,
.section-title h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Product Cards */
.product-card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
}

.product-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-badge.primary {
    background: #f3f0ff;
    color: #5b4dd8;
}

.product-badge.warning {
    background: #fff3f1;
    color: #d44f3e;
}

.product-badge.info {
    background: #eefdfb;
    color: #17766e;
}

.product-price {
    font-weight: 700;
    color: var(--brand);
}

/* Storefront cart quantity (shop + PDP) */
.sf-cart-qty {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(236, 143, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
}

.sf-cart-qty--card .sf-cart-qty-input {
    width: 2.5rem;
    min-width: 2.25rem;
    padding: 0.2rem 0.15rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--ink);
    background: transparent;
}

.sf-cart-qty--detail .sf-cart-qty-input {
    flex: 1 1 auto;
    min-width: 3rem;
    max-width: 5rem;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.45rem 0.35rem;
    border: none;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
}

.sf-cart-qty-btn {
    flex: 0 0 auto;
    min-width: 2.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fffefc, #fff7fb);
    color: var(--brand);
}

.sf-cart-qty-btn:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(138, 212, 209, 0.45);
}

.sf-cart-qty-btn:hover {
    background: var(--brand2);
    color: var(--ink);
}

.sf-cart-qty--detail .sf-cart-qty-btn {
    min-width: 3rem;
    font-size: 1.35rem;
    padding: 0.55rem 0.65rem;
}

.sf-cart-qty .sf-cart-qty-input::-webkit-outer-spin-button,
.sf-cart-qty .sf-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sf-cart-qty .sf-cart-qty-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.sf-cart-add--compact {
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    border-radius: 12px !important;
    font-size: 0.875rem;
}

.sf-cart-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 160%);
    z-index: 1080;
    max-width: min(420px, 92vw);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(46, 42, 47, 0.92);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(.2,.9,.2,1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.sf-cart-toast--show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Cart page: PDP anchors look like normal text (not default blue links) */
a.cart-product-link {
    color: inherit;
    text-decoration: none !important;
}

a.cart-product-link:hover,
a.cart-product-link:focus {
    text-decoration: none !important;
}

a.cart-product-link .cart-line-title {
    color: var(--ink);
    transition: color 0.15s ease;
}

a.cart-product-link:hover .cart-line-title,
a.cart-product-link:focus-visible .cart-line-title {
    color: var(--brand);
}

.cart-line-td--price a.cart-product-link:hover,
.cart-line-td--price a.cart-product-link:focus-visible,
.cart-line-td--line a.cart-product-link:hover,
.cart-line-td--line a.cart-product-link:focus-visible {
    color: var(--brand);
}

/* Cart line row: pointer for PDP via data-cart-row-link + script; controls reset cursor */
.cart-item-row[data-cart-row-link] {
    cursor: pointer;
}

.cart-item-row[data-cart-row-link] a,
.cart-item-row[data-cart-row-link] button,
.cart-item-row[data-cart-row-link] input,
.cart-item-row[data-cart-row-link] select,
.cart-item-row[data-cart-row-link] textarea,
.cart-item-row[data-cart-row-link] label,
.cart-item-row[data-cart-row-link] [data-cart-qty-root],
.cart-item-row[data-cart-row-link] .cart-line-remove,
.cart-item-row[data-cart-row-link] .cart-remove {
    cursor: auto;
}

/* Cart: tabular figures + reserved money widths (less horizontal shift when totals update) */
.cart-page-table .cart-line-td--price,
.cart-page-table .cart-line-td--line,
.cart-page-table .cart-line-td--price .cart-product-link,
.cart-page-table .cart-line-td--line .cart-product-link,
.cart-page-table .cart-line-td--line [data-line-total-for] {
    font-variant-numeric: tabular-nums;
}

/* Storefront cart page: card-style rows on small screens */
@media (max-width: 767.98px) {
    /* Hidden thead leaves Bootstrap's first tbody row with a top border — remove for cart only */
    .cart-table tbody {
        border-top: none !important;
    }

    .cart-page-responsive.table-responsive {
        overflow-x: visible;
        padding: 0.65rem;
    }

    .cart-page-table thead {
        display: none;
    }

    .cart-page-table tbody,
    .cart-page-table tbody tr,
    .cart-page-table tbody td {
        display: block;
        width: 100%;
    }

    .cart-page-table tbody tr.cart-line-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "product product"
            "price line"
            "qty qty"
            "remove remove";
        gap: 0.65rem 1rem;
        padding: 1rem 1rem 1.1rem;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .cart-page-table tbody tr.cart-line-row:last-child {
        margin-bottom: 0;
    }

    .cart-line-td--product { grid-area: product; }
    .cart-line-td--price { grid-area: price; }
    .cart-line-td--qty { grid-area: qty; }
    .cart-line-td--line { grid-area: line; }
    .cart-line-td--remove { grid-area: remove; }

    .cart-page-table .cart-line-td {
        padding: 0 !important;
        border: 0 !important;
    }

    .cart-line-td--line {
        text-align: right;
    }

    .cart-line-td--price .cart-product-link,
    .cart-line-td--line .cart-product-link {
        display: block;
    }

    .cart-line-td--line .cart-product-link {
        text-align: right;
    }

    .cart-line-td--price::before,
    .cart-line-td--line::before,
    .cart-line-td--qty::before {
        display: block;
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
        margin-bottom: 0.2rem;
    }

    .cart-line-product-link {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .cart-line-img,
    .cart-line-img-placeholder {
        width: 72px !important;
        min-width: 72px;
        height: 72px !important;
    }

    .cart-line-title {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .cart-line-qty-form {
        max-width: 12rem;
    }

    .cart-page-qty-wrap {
        gap: 0.35rem;
    }

    .cart-page-qty-wrap .cart-page-qty-dec,
    .cart-page-qty-wrap .cart-page-qty-inc {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-weight: 700;
        font-size: 1.15rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cart-page-qty-input.form-control {
        box-sizing: border-box;
        flex: 0 0 auto;
        width: 4.35rem !important;
        min-width: 4.35rem;
        max-width: 4.35rem;
        min-height: 2.75rem;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 0.45rem 0.35rem;
        font-variant-numeric: tabular-nums;
        -moz-appearance: textfield;
    }

    .cart-page-qty-input.form-control::-webkit-outer-spin-button,
    .cart-page-qty-input.form-control::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .cart-line-remove.btn {
        width: 100%;
        min-height: 2.5rem;
        border-color: transparent;
        color: var(--ink-soft, #6c757d);
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }

    .cart-line-remove.btn:hover,
    .cart-line-remove.btn:focus {
        color: #c82333;
        background-color: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .cart-pwyw-form {
        max-width: 100% !important;
    }

    .cart-page-summary-actions .btn {
        width: 100%;
    }

    .cart-page-checkout-btn {
        min-height: 2.75rem;
        font-weight: 600;
    }
}

@media (min-width: 768px) {
    .cart-page-table {
        table-layout: fixed;
        width: 100%;
    }

    /* Explicit column widths (colgroup + cells) — qty column must not move when line totals update */
    .cart-page-table col.cart-line-col--product {
        width: auto;
    }

    .cart-page-table col.cart-line-col--price {
        width: 7.5rem;
    }

    .cart-page-table col.cart-line-col--qty {
        width: 11.75rem;
    }

    .cart-page-table col.cart-line-col--line {
        width: 9.5rem;
    }

    .cart-page-table col.cart-line-col--remove {
        width: 6rem;
    }

    .cart-page-table .cart-line-th--product,
    .cart-page-table .cart-line-td--product {
        width: auto;
        min-width: 0;
    }

    .cart-page-table .cart-line-th--price,
    .cart-page-table .cart-line-td--price {
        width: 7.5rem;
        min-width: 7.5rem;
        max-width: 7.5rem;
    }

    .cart-page-table .cart-line-th--qty,
    .cart-page-table .cart-line-td--qty {
        width: 11.75rem;
        min-width: 11.75rem;
        max-width: 11.75rem;
        box-sizing: border-box;
        vertical-align: middle;
    }

    .cart-page-table .cart-line-td--qty .cart-line-qty-form {
        width: 5.5rem;
        max-width: 5.5rem;
        flex-shrink: 0;
    }

    .cart-page-table .cart-line-td--qty .cart-page-qty-wrap {
        display: block;
    }

    .cart-page-table .cart-line-th--line,
    .cart-page-table .cart-line-td--line {
        width: 9.5rem;
        min-width: 9.5rem;
        max-width: 9.5rem;
    }

    .cart-page-table .cart-line-th--remove,
    .cart-page-table .cart-line-td--remove {
        width: 6rem;
        min-width: 6rem;
        max-width: 6rem;
    }

    .cart-page-table .cart-line-td--price,
    .cart-page-table .cart-line-td--line {
        white-space: nowrap;
        vertical-align: middle;
        overflow: hidden;
    }

    .cart-page-table .cart-line-td--price .cart-product-link,
    .cart-page-table .cart-line-td--line .cart-product-link {
        display: inline-block;
        max-width: 100%;
        text-align: right;
    }

    .cart-page-qty-input.form-control {
        box-sizing: border-box;
        width: 5rem;
        min-width: 5rem;
        max-width: 5rem;
        font-variant-numeric: tabular-nums;
    }

    .cart-page-summary-actions .btn {
        width: auto;
    }

    .cart-page-summary-actions .cart-page-checkout-btn.flex-md-fill {
        flex: 1 1 auto;
    }
}

/* Story & Events Section */
.story-events-section {
    margin: 2rem 0;
}

.story-events-section .row {
    align-items: flex-start;
}

.story-card, .events-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.story-title, .events-title {
    font-family: 'Poppins', sans-serif;
    margin: 0.5rem 0 0.8rem;
}

.events-list {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
}

.events-list li {
    margin: 0.6rem 0;
}

.event-date {
    font-weight: 700;
    color: var(--brand);
}

.event-secondary {
    display: block;
    margin-top: 0.2rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.btn-facebook {
    background: linear-gradient(135deg, #3b5998, #8b9dc3) !important;
}

/* Forms */
.form-control-custom {
    border: 2px solid var(--brand2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control-custom:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(236, 143, 184, 0.25);
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(236, 143, 184, 0.25);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    color: #5a5260;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(236, 143, 184, 0.1);
}

/* Legacy Styles (keeping for backward compatibility) */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

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

.btn-primary:hover {
    background-color: #d47aa0;
    border-color: #d47aa0;
}

.btn-light {
    background-color: white;
    border-color: white;
    color: var(--brand);
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--brand);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .giveaway-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Admin Dashboard */
.admin-stats {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Status indicators for admin dashboard */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* Stat cards styling */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Email admin specific styles */
.email-admin .navbar-brand {
    font-weight: bold;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Table improvements */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Card improvements */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Button improvements */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-sm {
    border-radius: 4px;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
}

/* Form improvements */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

/* Ensure navbar links are visible on both light and dark backgrounds */
.navbar-light .navbar-nav .nav-link {
    color: #222 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--brand) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #f8f9fa !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent) !important;
}

/* Contact page: .contact-form / .contact-info below. Main shell uses py-4 on the layout wrapper (header_public.php). */

.contact-form {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--brand);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--brand);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}