.login-gradient {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes badge to the right */
    width: 100%;
    padding-right: 20px; /* optional spacing */
}

/* Your gradient badge */
.active-church-badge {
    background: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar-gradient {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    width: 100%;
    height: 100%;
}

.gradient-background {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.active-church-badge {
    background: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rz-progressbar-value {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3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jY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.dashboard-root {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-subtitle {
    margin: 0;
    opacity: 0.75;
    font-size: 0.95rem;
}

/* Theme toggle */
.theme-toggle {
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    background: var(--btn-bg, #f0f0f0);
    color: var(--btn-text, #333);
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

    .theme-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* KPI row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s ease, transform 0.1s ease, background 0.2s ease;
}

    .kpi-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    }

.kpi-icon {
    font-size: 1.6rem;
    opacity: 0.8;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 600;
}

.kpi-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Optional color accents */
.kpi-meetings {
    border-left: 4px solid #3f51b5;
}

.kpi-attendance {
    border-left: 4px solid #009688;
}

.kpi-gifts {
    border-left: 4px solid #ff9800;
}

.kpi-parochial {
    border-left: 4px solid #9c27b0;
}

/* Main grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.dash-card {
    grid-column: span 6;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

    .dash-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    }

/* Card header */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 10px 0 10px;
}

    .card-header i {
        font-size: 1.4rem;
        opacity: 0.85;
    }

/* Responsive */
@media (max-width: 1100px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-card {
        grid-column: span 12;
    }
}

@media (max-width: 700px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

/* Landing Page*/
/* Full-screen gradient background */
.landing-gradient {
    background: linear-gradient(135deg, #1a237e, #4a148c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center container */
.landing-container {
    text-align: center;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

/* Card with transparent background */
.landing-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

/* Options layout */
.landing-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Option buttons */
.landing-option {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
}

    /* Hover effect */
    .landing-option:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        border-color: white;
    }

    /* Typography */
    .landing-option h3 {
        margin: 0;
        font-weight: 600;
    }

    .landing-option p {
        margin: 6px 0 0 0;
        opacity: 0.85;
    }

/* Church Selector */
/* Grid layout */
.church-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Card styling */
.church-card {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .church-card:hover {
        border-color: #3f51b5;
        box-shadow: 0 4px 10px rgba(63, 81, 181, 0.15);
        transform: translateY(-2px);
    }

    .church-card.selected {
        border-color: #3f51b5;
        background: #f3f4ff;
        box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.35);
    }

/* Header */
.church-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.church-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #3f51b5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Subscription badges */
.subscription-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.sub-active {
    background: #e6f7e6;
    color: #1b7a1b;
}

.sub-trial {
    background: #e8f0ff;
    color: #2a4bd7;
}

.sub-expired {
    background: #ffe6e6;
    color: #b30000;
}

.sub-unknown {
    background: #f0f0f0;
    color: #666;
}

/* Mission statement */
.church-mission {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer meta */
.church-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
}

.inactive-tag {
    background: #ffe5e5;
    color: #b30000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Church Wizard*/
/* Background */
.wizard-gradient {
    background: linear-gradient(135deg, #1a237e, #4a148c);
    min-height: 100vh;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: white;
}

/* Wrapper */
.wizard-wrapper {
    width: 100%;
    max-width: 900px;
}

/* Progress Bar */
.wizard-progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: #00e5ff;
    transition: width 0.4s ease;
}

/* Step Card */
.wizard-card {
    background: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    animation-duration: 0.3s;
}

/* Animations */
.fade-in {
    animation-name: fadeIn;
}

.fade-out {
    animation-name: fadeOut;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Step container spacing */
.wizard-step {
    color: white;
}

/* Spacing between fields */
.wizard-field {
    margin-bottom: 20px;
}

/* Radzen textboxes on dark background */
.wizard-step .rz-textbox,
.wizard-step .rz-password {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

    .wizard-step .rz-textbox::placeholder,
    .wizard-step .rz-password::placeholder {
        color: rgba(255,255,255,0.6);
    }

/* Radzen fieldset styling */
.rz-fieldset {
    border-color: rgba(255,255,255,0.3) !important;
}

    .rz-fieldset legend {
        color: white !important;
    }

/* Radzen button styling */
.wizard-step .rz-button {
    font-size: 16px;
    padding: 10px 20px;
}

/* Buttons row */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.finish-step {
    text-align: center;
    color: white;
    padding: 20px;
    animation: finishFade 0.6s ease;
}

.finish-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: #00e676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.summary-card {
    text-align: left;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(6px);
}

    .summary-card h3 {
        margin-top: 20px;
        margin-bottom: 10px;
        color: #80d8ff;
    }

    .summary-card ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 10px;
    }

    .summary-card li {
        margin-bottom: 6px;
        font-size: 15px;
    }

.finish-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes finishFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass-style numeric textbox */
.rz-textbox {
    /*background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;*/
    /*color: white !important;*/
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    width: 100% !important;
    backdrop-filter: blur(6px);
}

    /* Placeholder styling */
    .rz-textbox::placeholder {
        color: rgba(255,255,255,0.6);
    }

    /* Focus state */
    .rz-textbox:focus {
        outline: none !important;
        border-color: rgba(255,255,255,0.6) !important;
        box-shadow: 0 0 6px rgba(255,255,255,0.4);
    }

.error-banner {
    background: rgba(255,0,0,0.2);
    border: 1px solid rgba(255,0,0,0.5);
    color: #ffb3b3;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left;
}