/* App-specific styles. The shadcn look for Bootstrap components lives in shadcn-skin.css. */

/* Contact date modal: wider on desktop, capped on smaller screens */
.contact-date-modal {
    max-width: 300px;
}

@media (min-width: 992px) {
    .contact-date-modal {
        max-width: 600px;
    }
}

/* Gift card amount picker on the new-giveaway form: a row of selectable cards */
.gift-card-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gift-card-option {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}

.gift-card-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.gift-card-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--radius) - 2px);
    background-color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.gift-card-option input:checked + .gift-card-option-label {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
    color: #fff;
}

.gift-card-option input:focus-visible + .gift-card-option-label {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Left sidebar navigation */
.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    width: 220px;
    background-color: #fff;
    border-right: 1px solid var(--bs-border-color);
    padding: 1rem 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1.25rem 1.25rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--bs-body-color);
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    color: #4b5058;
    text-decoration: none;
}

.sidebar-nav a.active {
    background-color: var(--accent);
    color: var(--bs-body-color);
}

.sidebar-nav a:hover {
    background-color: var(--accent);
    color: var(--bs-body-color);
    text-decoration: none;
}

.sidebar-nav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sidebar-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 1rem);
    margin: 0 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    background: none;
    border: none;
    color: #4b5058;
    text-align: left;
}

.sidebar-nav-toggle:hover {
    background-color: var(--accent);
    color: var(--bs-body-color);
}

.sidebar-nav-toggle svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sidebar-nav-toggle span {
    flex: 1 1 auto;
}

.sidebar-nav-chevron {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    transition: transform 0.15s ease-in-out;
}

.sidebar-nav-toggle[aria-expanded="true"] .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar-nav-group.open .sidebar-nav-toggle {
    color: var(--bs-body-color);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-submenu li {
    list-style: none;
}

.sidebar-submenu a {
    display: block;
    margin: 0 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 2.6rem;
    border-radius: calc(var(--radius) - 2px);
    color: #4b5058;
    text-decoration: none;
}

.sidebar-submenu a:hover,
.sidebar-submenu a:focus {
    background-color: var(--accent);
    color: var(--bs-body-color);
    text-decoration: none;
}

.sidebar-submenu a.active {
    background-color: var(--accent);
    color: var(--bs-body-color);
    font-weight: 500;
}

.sidebar-logout {
    padding: 0.75rem 1.25rem 0.25rem;
    border-top: 1px solid var(--bs-border-color);
    margin-top: 0.5rem;
}

.sidebar-logout button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0;
    background: none;
    border: none;
    color: #4b5058;
    font-size: 0.95rem;
}

.sidebar-logout button:hover {
    color: var(--bs-body-color);
}

.sidebar-logout svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.content-area {
    flex: 1 1 auto;
    min-width: 0;
}

.content-area > main {
    padding-top: 2rem;
}

@media (max-width: 767.98px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color);
        padding: 0.5rem 1rem;
    }

    .sidebar-brand {
        padding: 0.25rem 0.75rem 0.25rem 0;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 auto;
    }

    .sidebar-nav a {
        padding: 0.4rem 0.6rem;
    }

    .sidebar-nav a span {
        display: none;
    }

    .sidebar-nav-toggle {
        width: auto;
        padding: 0.4rem 0.6rem;
    }

    .sidebar-nav-toggle span {
        display: none;
    }

    .sidebar-nav-chevron {
        display: none;
    }

    .sidebar-nav-group {
        position: relative;
    }

    .sidebar-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 20;
        min-width: 220px;
        background-color: #fff;
        border: 1px solid var(--bs-border-color);
        border-radius: 4px;
        padding: 0.25rem;
    }

    .sidebar-submenu a {
        padding: 0.45rem 0.6rem;
        border-radius: 4px;
    }

    .sidebar-logout {
        border-top: none;
        margin-top: 0;
        padding: 0;
    }

    .sidebar-logout button span {
        display: none;
    }

    .content-area > main {
        padding-top: 1.25rem;
    }
}

/* Dashboard stats row and giveaway question callout */
.stat-value {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-value-sm {
    font-size: 1.5rem;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.callout {
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    background-color: #D8E4FF;
    width: fit-content;
}
