/* Custom styling for the church form */
body {
    background: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    background-color: #ffffff;
}

/* Elegant deep blue/purple gradient for the church theme */
.card-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.25rem rgba(42, 82, 152, 0.25);
}

.auth-link {
    text-decoration: none;
    font-weight: 500;
    color: #2a5298;
}

.auth-link:hover {
    text-decoration: underline;
    color: #1e3c72;
}

/* Shared public/auth header */
.public-header {
    z-index: 1030;
}

.public-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.public-navbar .navbar-brand {
    color: #1e3c72;
    font-weight: 700;
}

.public-navbar .navbar-brand:hover {
    color: #2a5298;
}

.public-navbar .nav-link {
    color: #1f2937;
    font-weight: 500;
}

.public-navbar .nav-link:hover {
    color: #2a5298;
}

.public-navbar .btn-primary {
    border: none;
}

/* Dashboard layout improvements */
.dashboard-layout {
    min-height: calc(100vh - 2rem);
}

.dashboard-sidebar {
    min-height: calc(100vh - 2rem);
}

.dashboard-sidebar .list-group-item.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: #2a5298;
    color: #fff;
}

.dashboard-main .card {
    border-radius: 0.5rem;
}

/* Bulletin page */
.bulletin-page {
    background: #f7fbfc;
}

.bulletin-main {
    min-height: calc(100vh - 90px);
}

.bulletin-toolbar {
    gap: 1rem;
}

.bulletin-count-pill {
    background: #ffffff;
    border: 1px solid #d7ecef;
    border-radius: 999px;
    color: #344054;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.bulletin-search {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 520px;
}

.search-input-wrap {
    background: #ffffff;
    border: 1px solid #d7ecef;
    border-radius: 999px;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 0.8rem;
}

.search-input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.55rem 0.45rem;
    background: transparent;
    color: #334155;
}

.bulletin-search button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #12b981 0%, #0ea5a3 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
}

.bulletin-list {
    display: grid;
    gap: 1rem;
}

.bulletin-card {
    background: #ffffff;
    border: 1px solid #e6f3f5;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    overflow: hidden;
}

.bulletin-left-icon {
    width: 68px;
    border-right: 2px dotted #86d1d4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfefe;
    font-size: 1.7rem;
}

.bulletin-content {
    flex: 1;
    padding: 0.9rem 1.1rem;
}

.bulletin-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.bulletin-title-row h2 {
    margin: 0;
    color: #0f2940;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.badge-pdf {
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    letter-spacing: 0.3px;
}

.bulletin-desc {
    margin: 0.35rem 0 0.6rem;
    color: #526074;
    font-size: 1.02rem;
}

.bulletin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: #1f3250;
    font-weight: 500;
    font-size: 0.98rem;
}

.bulletin-bottom {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bulletin-file {
    color: #64748b;
    font-weight: 500;
}

.bulletin-actions {
    display: flex;
    gap: 0.6rem;
}

.bulletin-actions a {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-quick {
    background: #06b6d4;
}

.btn-download {
    background: #ef4444;
}

/* Centers reCAPTCHA box on mobile devices smoothly */
@media (max-width: 576px) {
    .g-recaptcha {
        transform: scale(0.85);
        -webkit-transform: scale(0.85);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }
    .d-flex {
        display: block !important;
        text-align: center;
    }

    .dashboard-layout {
        min-height: auto;
    }

    .dashboard-sidebar {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .bulletin-search {
        max-width: 100%;
    }

    .bulletin-card {
        flex-direction: column;
    }

    .bulletin-left-icon {
        width: 100%;
        min-height: 58px;
        border-right: none;
        border-bottom: 2px dotted #86d1d4;
    }

    .bulletin-title-row h2 {
        font-size: 1.2rem;
    }
}
