/* Logo default sizing */
.solotrim-logo {
    height: 4rem; /* Default: 64px */
    width: auto;
}

/* Navbar logo responsive sizing for small mobile */
@media (max-width: 575.98px) {
    .navbar-brand .solotrim-logo {
        height: 3rem; /* Small mobile: 48px */
    }
}

/* Sticky footer layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

/* Sidebar base styles (shared between dashboard and admin) */
.sidebar {
    min-height: 100vh;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.sidebar .nav-link i {
    width: 1.5rem;
}

/* Dashboard sidebar color */
.sidebar-dashboard {
    background-color: #0f766e;
}

/* Admin sidebar color */
.sidebar-admin {
    background-color: #1e293b;
}

/* Main content area */
.main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
    }
}

/* Stat card icons */
.stat-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon-sm {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon-lg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* HTMX loading states */
#table-container.htmx-request {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* ===========================================
   Video Hero Section
   =========================================== */

.video-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 106px);
    overflow: hidden;
    background-color: #a89880; /* Warm sandy tone matching video content */
}

.video-hero--with-promo {
    height: calc(100vh - 175px);
}

.video-hero__videos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

.video-hero__video--active {
    opacity: 1;
}

.video-hero__video--hidden {
    opacity: 0;
}

.video-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.video-hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.video-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.video-hero__subtitle {
    font-size: 1.25rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.95;
}

.video-hero__price {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.video-hero__price--promo {
    color: #4ade80;
}

.video-hero__cta {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .video-hero__title {
        font-size: 2.25rem;
    }

    .video-hero__subtitle {
        font-size: 1rem;
    }

    .video-hero__content {
        padding: 1.5rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .video-hero__video {
        transition: opacity 0.3s ease-in-out;
    }
}

/* ===========================================
   Savings Sticker (discount badge)
   =========================================== */

.savings-sticker {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transform: rotate(12deg);
}

.savings-sticker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    border-radius: 50%;
    z-index: -1;
    clip-path: polygon(
        50% 0%, 61% 11%, 75% 5%, 79% 21%, 95% 25%, 89% 39%,
        100% 50%, 89% 61%, 95% 75%, 79% 79%, 75% 95%, 61% 89%,
        50% 100%, 39% 89%, 25% 95%, 21% 79%, 5% 75%, 11% 61%,
        0% 50%, 11% 39%, 5% 25%, 21% 21%, 25% 5%, 39% 11%
    );
}

.savings-sticker span {
    white-space: pre-line;
    line-height: 1.2;
}
