/* Marriage101 — small custom layer on top of Bootstrap 5. */

:root {
    --parish: #5b2333;        /* deep liturgical burgundy */
    --parish-light: #7d3145;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-navbar {
    background: linear-gradient(90deg, var(--parish), var(--parish-light));
}
.app-navbar .navbar-brand,
.app-navbar .navbar-brand:hover {
    color: #fff;
}

.navbar-tagline {
    font-size: .8rem;
    font-weight: 400;
    opacity: .7;
    margin-left: .35rem;
}

/* Collapsible left navigation (offcanvas) */
.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--parish), #2c1019);
    color: #fff;
}
.app-sidebar .offcanvas-title { color: #fff; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .2); padding-bottom: 12px; }
.sidebar-logo { max-width: 140px; max-height: 90px; }
.sidebar-logo-icon { font-size: 2rem; color: rgba(255, 255, 255, .85); }
.brand-logo-sm { max-height: 28px; vertical-align: middle; border-radius: 3px; background: #fff; padding: 1px; }
.app-sidebar hr { border-color: rgba(255, 255, 255, .3); }
.app-sidebar .nav-link {
    color: rgba(255, 255, 255, .85);
    border-radius: 6px;
    padding: .5rem .75rem;
}
.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.app-sidebar .nav-link.active {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}
/* Nested "Admin" submenu: indent children and shrink them slightly */
.app-sidebar .nav-submenu { padding-left: .75rem; }
.app-sidebar .nav-submenu .nav-link { font-size: .925rem; padding: .4rem .75rem; }
/* Chevron flips when the Admin group is expanded */
.app-sidebar .nav-link[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.app-sidebar .nav-link .bi-chevron-down { transition: transform .15s ease; }

/* Month calendar */
.cal-table { table-layout: fixed; }
.cal-table th { text-align: center; font-size: .8rem; color: #666; }
.cal-table td { height: 104px; width: 14.28%; vertical-align: top; padding: 4px; }
.cal-daynum { font-size: .85rem; font-weight: 600; color: #777; }
.cal-other { background: #fafafa; }
.cal-today { box-shadow: inset 0 0 0 2px var(--parish); }
.cal-blocked { background: repeating-linear-gradient(45deg, #f7eef1, #f7eef1 7px, #efdfe4 7px, #efdfe4 14px); }
.cal-block-tag { color: var(--parish); font-size: .8rem; }
.cal-block-reason { font-size: .68rem; color: var(--parish); line-height: 1.05; margin-bottom: 2px; }
.cal-evt {
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    margin-top: 2px;
    font-weight: 500;
}

/* Large screens: pin the sidebar open as a fixed left column and
   offset the page content (and footer) so they sit beside it. */
@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        z-index: 1030;
    }
    .app-offset {
        margin-left: 250px;
    }
}

/* Login screen */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--parish), #2c1019);
}

/* Stage cards on the dashboard */
.stage-card .stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--parish);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}

.btn-primary {
    --bs-btn-bg: var(--parish);
    --bs-btn-border-color: var(--parish);
    --bs-btn-hover-bg: var(--parish-light);
    --bs-btn-hover-border-color: var(--parish-light);
    --bs-btn-active-bg: var(--parish-light);
    --bs-btn-active-border-color: var(--parish-light);
}

.text-primary {
    color: var(--parish) !important;
}

/* Horizontal stage stepper on the case detail page */
.stepper {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
}
.step {
    flex: 1 1 0;
    min-width: 78px;
    text-align: center;
    position: relative;
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}
.step-dot {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin: 0 auto .35rem;
    background: #dee2e6;
    color: #6c757d;
    font-weight: 600;
    font-size: .85rem;
}
.step-label {
    font-size: .68rem;
    line-height: 1.1;
    color: #6c757d;
}
.step-done .step-dot    { background: #198754; color: #fff; }
.step-done::after       { background: #198754; }
.step-current .step-dot { background: var(--parish); color: #fff; box-shadow: 0 0 0 3px rgba(91,35,51,.2); }
.step-current .step-label { color: var(--parish); font-weight: 600; }
.step-muted .step-dot   { background: #f1f1f1; }
