@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500&display=swap');

a {
  color: #1977cc;
  text-decoration: none;
}

a:hover {
  color: #3291e6;
  text-decoration: none;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 1 auto;
}

.app-footer {
    margin-top: auto;
    flex-shrink: 0;
}

body {
    font-family: "Roboto", sans-serif;
    background: #f8f9fa;
    color: #212529;
}

.church-navbar {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
}
.blue-navbar {
    background: #1977cc;
    backdrop-filter: blur(8px);
}

.church-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-hover {
    position: relative;
    transition: color 0.3s ease;
}

.nav-hover::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-hover:hover::after,
.nav-hover:focus::after {
    transform: scaleX(1);
}

.hero-section {
    min-height: 88vh;
    background: url('../images/church-bg.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border-radius: 16px;
}

.dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
}

.alert {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 78vh;
    }

    .church-logo {
        width: 34px;
        height: 34px;
    }
}
.calendar-day {
    background: #fff;
}

.calendar-day.empty {
    opacity: 0.45;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.calendar-header-cell {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
}

.calendar-header-cell:nth-child(7) {
    border-right: none;
}

.calendar-cell {
    min-height: 150px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.calendar-cell:nth-child(7n) {
    border-right: none;
}

.calendar-cell-empty {
    background: #f8f9fa;
}

.calendar-cell-today {
    background: #f8fbff;
}

.calendar-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-date-number {
    font-weight: 700;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.calendar-event-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.25;
}

.calendar-event-title {
    font-weight: 600;
}

.calendar-event-time {
    color: #6c757d;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.calendar-no-events {
    color: #6c757d;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-header-cell {
        display: none;
    }

    .calendar-cell,
    .calendar-cell-empty {
        border-right: none;
        min-height: auto;
    }

    .calendar-cell-empty {
        display: none;
    }
}
.calendar-event-item {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calendar-event-item:hover {
    background: #eef5ff;
    border-color: #b6d4fe;
}

.card-media {
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient overlay */
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.35) 100%
    );
}

/* Optional hover polish */
.card:hover .card-media img {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}
ui-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.ui-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.12);
}

.ui-soft {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ui-section-title {
    font-weight: 700;
    letter-spacing: .01em;
}

.ui-muted {
    color: #6c757d;
}

.ui-pill {
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 600;
}

/* ===== Background Overlay System ===== */
.bg-overlay-wrap {
    position: relative;
    overflow: hidden;
}

.bg-overlay-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-bg, linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.20)));
    z-index: 1;
}

.bg-overlay-wrap > * {
    position: relative;
    z-index: 2;
}

/* ===== Banner / Media ===== */
.ui-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ui-banner-sm {
    max-height: 220px;
}

.ui-banner-lg {
    max-height: 420px;
}

/* ===== Capacity / Status Strip ===== */
.ui-capacity-box {
    border-radius: .85rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.75);
}

.ui-progress {
    height: .6rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.08);
}

.ui-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width .25s ease;
}

.ui-progress-normal {
    background: #198754;
}

.ui-progress-warning {
    background: #ffc107;
}

.ui-progress-danger {
    background: #dc3545;
}

/* ===== Button polish ===== */
.btn-soft-primary {
    background: rgba(13,110,253,.08);
    color: #0d6efd;
    border: 1px solid rgba(13,110,253,.18);
}

.btn-soft-primary:hover {
    background: rgba(13,110,253,.14);
    color: #0a58ca;
}

.btn-soft-dark {
    background: rgba(33,37,41,.08);
    color: #212529;
    border: 1px solid rgba(33,37,41,.14);
}

.btn-soft-dark:hover {
    background: rgba(33,37,41,.14);
    color: #000;
}

/* ===== Hero ===== */
.ui-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.ui-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
}

.ui-hero-text {
    font-size: 1.05rem;
    max-width: 680px;
}

/* ===== Meta rows ===== */
.ui-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    font-size: .92rem;
}

.ui-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* ===== Admin tables ===== */
.ui-table thead th {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    white-space: nowrap;
}

.ui-table td,
.ui-table th {
    vertical-align: middle;
}

.ui-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

/* ===== Mobile spacing ===== */
@media (max-width: 767.98px) {
    .ui-capacity-box {
        padding: .75rem .85rem;
    }

    .ui-hero {
        min-height: 420px;
    }
}

/*------Admin-----*/
.navbar .dropdown-menu {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 0.5rem;
    margin: 0.1rem 0.5rem;
    width: auto;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.admin-layout {
    min-height: 100vh;
    background: #f8f9fc;
}

.navbar .dropdown-menu {
    min-width: 220px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 0.55rem;
    margin: 0.1rem 0.45rem;
    width: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.navbar .nav-link.active {
    color: #fff !important;
}

.admin-page-wrap {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.admin-toolbar form {
    margin: 0;
}

.admin-toolbar .btn-sm {
    min-width: 2rem;
}

.navbar.sticky-top {
    backdrop-filter: blur(6px);
    background-color: rgba(13, 110, 253, 0.95) !important; /* Bootstrap primary with transparency */
}
.navbar.scrolled {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
/* Smooth transition */
#mainNavbar {
    transition: all 0.25s ease;
}

/* Slight glass + stronger shadow when scrolling */
#mainNavbar.scrolled {
    background-color: rgba(13, 110, 253, 0.95) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
}



