/* ========================================
   Core Layout & Navigation
   ======================================== */
html {
    background:
        radial-gradient(ellipse 80% 50% at 0% 100%,  rgba(13, 110, 253, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%,  rgba(111, 66, 193, 0.18) 0%, transparent 55%),
        linear-gradient(170deg, #e8f0fe 0%, #f4f2ff 50%, #ede7fb 100%) !important;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    background: transparent !important;
}

.layout-shell {
    display: flex;
    min-height: calc(100vh - 56px);
    background: transparent;
}

.sidebar-panel {
    width: 260px;
    background: rgba(226, 232, 248, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 2px 0 12px rgba(99, 102, 241, 0.06);
    padding: 1.25rem 1rem;
}

.topbar {
    height: 56px;
    background: linear-gradient(135deg, #0d6efd 0%, #4f46e5 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

.topbar .brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.topbar-hint {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

.content-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-inner {
    padding: 1.25rem;
    background: transparent;
}

/* Navigation Styles */
.nav-pills .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
    color: #0f172a;
}

.nav-pills .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.sidebar-sep {
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

/* ========================================
   Dashboard Styles
   ======================================== */
.dash-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    background: var(--bs-body-bg);
}

.dash-kpi {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.dash-sub {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.dash-table td,
.dash-table th {
    vertical-align: middle;
}

.badge-soft {
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.truncate {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   RSVP Status Card Grouping
   ======================================== */
.rsvp-group-start {
    border-top: 2px solid var(--bs-border-color);
}

.rsvp-group-start > td {
    padding-top: 0.75rem;
}

/* ========================================
   Bottom Navigation Bar
   ======================================== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background-color: #0d6efd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    padding-top: 4px;
}

.bottom-nav .nav-item i {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.bottom-nav .active {
    color: #ffc107;
}

/* ========================================
   Mobile Responsive Overrides
   ======================================== */
@media (max-width: 767.98px) {
    /* Touch-friendly control heights */
    .btn,
    .form-control,
    .form-select,
    .input-group-text {
        min-height: 44px;
    }

    /* Account for fixed bottom nav */
    main,
    .main-content,
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    /* Stack date/time controls on mobile */
    .ib-when .input-group-text {
        width: 100%;
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    }

    .ib-when .ib-date,
    .ib-when .ib-time,
    .ib-when .ib-select {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .ib-when .input-group > .form-control,
    .ib-when .input-group > .form-select {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

@media (max-width: 576px) {
    .truncate {
        max-width: 220px;
    }
}





/* AddEditEvent.razor.css */

/* Desktop: keep "When" input-groups neat and not full-stretch */
.ib-when .ib-group {
    max-width: 720px;
}

.ib-when .input-group-text {
    min-width: 110px;
    white-space: nowrap;
}

/* Force sensible widths for date/time so they don't expand */
.ib-when .ib-date.form-control {
    width: 200px;
    max-width: 200px;
    flex: 0 0 200px !important;
}

.ib-when .ib-time.form-control {
    width: 140px;
    max-width: 140px;
    flex: 0 0 140px !important;
}

/* Time zone select: cap width so it doesn't become a runway */
.ib-when .ib-select.form-select {
    width: 520px;
    max-width: 520px;
    flex: 0 1 520px !important;
}

/* Mobile: stack label then controls full-width */
@media (max-width: 576px) {
    .ib-when .ib-group {
        max-width: 100%;
    }

    .ib-when .input-group {
        flex-wrap: wrap;
    }

    .ib-when .input-group-text {
        width: 100%;
        min-width: 100%;
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    }

    .ib-when .ib-date.form-control,
    .ib-when .ib-time.form-control,
    .ib-when .ib-select.form-select {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100% !important;
    }

    /* When stacked, make the first control connect to the label nicely */
    .ib-when .input-group > .form-control,
    .ib-when .input-group > .form-select {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* ========================================
   Landing Page – Hero
   ======================================== */
.hero {
    min-height: calc(100vh - 56px);
    padding: 3rem 1rem;
}

.hero-title {
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
}

.hero-subtitle {
    color: #475569;
    max-width: 520px;
}

.hero-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    vertical-align: middle;
}

/* ========================================
   Landing Page – Hero Graphic
   ======================================== */
.hero-graphic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(111, 66, 193, 0.10) 100%);
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.10);
}

.hero-graphic-main {
    font-size: 3.5rem;
    color: #0d6efd;
}

.hero-graphic-accent {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accent-stars {
    top: -6px;
    right: -4px;
    background: #fff3cd;
    color: #d9850b;
}

.accent-check {
    bottom: -4px;
    left: -8px;
    background: #d1f5e4;
    color: #0ca678;
}

.accent-people {
    bottom: 8px;
    right: -14px;
    background: #e8daff;
    color: #6f42c1;
}

.hero-graphic-sm {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(111, 66, 193, 0.10) 100%);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.10);
}

@media (max-width: 991.98px) {
    .hero-graphic {
        width: 110px;
        height: 110px;
    }

    .hero-graphic-main {
        font-size: 2.75rem;
    }

    .hero-graphic-accent {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Landing Page – Feature Cards
   ======================================== */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.feature-icon.icon-purple {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.feature-icon.icon-teal {
    background: rgba(32, 201, 151, 0.1);
    color: #0ca678;
}

.feature-icon.icon-amber {
    background: rgba(255, 193, 7, 0.15);
    color: #d9850b;
}


/* Dashboard.razor.css */

.ib-kpi {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.ib-event-item {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

/* Larger title, keep it tidy */
.ib-event-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Keep meta rows consistent */
.ib-event-row {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Truncation helper */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.min-w-0 {
    min-width: 0;
}

/* On small screens, let location/RSVP wrap if needed */
@media (max-width: 576px) {
    .ib-event-row .truncate {
        white-space: normal;
    }
}


/* single subtle separator between RSVP groups */
.rsvp-group-start td {
    border-top: 4px solid rgba(0,0,0,.25) !important;
}