/* Global Reset & Architecture Design System */
:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #1e3a8a;
    --primary-hover: #1d4ed8;
    --secondary: #475569;
    --secondary-hover: #334155;
    --success: #15803d;
    --success-bg: #dcfce7;
    --error: #b91c1c;
    --error-bg: #fee2e2;
    --border: #e2e8f0;
    --radius: 6px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Structural Grid & Content Enclosures */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.grid-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-layout.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-layout.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .grid-layout.cols-2, .grid-layout.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Core Functional Button Matrix */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-surface);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-surface);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    text-decoration: none;
}

.btn-success {
    background-color: var(--success);
    color: var(--bg-surface);
}

.btn-success:hover {
    background-color: #166534;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-submit {
    background-color: var(--primary);
    color: var(--bg-surface);
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Public Header System with Golden Ratio Typography Spacing */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-meta {
    text-align: center;
}

.brand-title {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.118;
    letter-spacing: -0.025em;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.146rem;
    font-weight: 500;
    line-height: 1.382;
}

.header-scripture {
    font-style: italic;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0.25rem auto 0 auto;
    font-size: 0.825rem;
    line-height: 1.3;
    border-top: 1px dashed var(--border);
    padding-top: 0.35rem;
    text-align: center;
}

.header-scripture cite {
    display: inline-block;
    font-weight: 600;
    font-style: normal;
    margin-left: 0.4rem;
    color: var(--primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.main-navigation a {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Public Section Content Components */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: var(--bg-surface);
    text-align: center;
}

.hero-section h2 {
    color: var(--bg-surface);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.15rem;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.values-section {
    background-color: var(--bg-surface);
}

.values-section h3, .mission-section h3, .offerings-section h3, .split-section h3, .resources-section h3, .testimonials-section h3, .contact-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1.1rem;
}

.offer-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.offer-item h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.split-section {
    background-color: var(--bg-surface);
}

.content-block {
    padding: 1rem;
}

.content-block h3 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.content-block ul {
    list-style-position: inside;
    margin-left: 0.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.resources-section {
    text-align: center;
}

.resources-section p {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--bg-surface);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-style: italic;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Forms Engine Infrastructure */
.contact-section {
    background-color: var(--bg-surface);
}

.section-lead {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-info h4 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    background-color: var(--bg-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-surface);
}

.form-feedback {
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    background-color: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

/* Public System Footer */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-container {
    padding: 3rem 1.5rem;
}

.footer-scripture {
    font-style: italic;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0.75rem auto 0 auto;
    font-size: 0.925rem;
    line-height: 1.4;
}

.footer-scripture cite {
    display: block;
    font-weight: 600;
    font-style: normal;
    margin-top: 0.25rem;
    color: #38bdf8;
}

.footer-copyright {
    font-size: 0.85rem;
}

/* Professional Soft Tone Administration Workspace */
.admin-body {
    background-color: #faf6f6;
    color: #3d2e2f;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3eae9 0%, #e3d3d2 100%);
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid #ebdcdb;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(138, 79, 86, 0.1);
}

.auth-card h2 {
    color: #8a4f56;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: #8c7678;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-card label {
    color: #5c4a4b;
}

.auth-card input {
    background-color: #faf6f6;
    border-color: #ebdcdb;
    color: #3d2e2f;
}

.auth-card input:focus {
    border-color: #8a4f56;
    background-color: #ffffff;
}

.auth-card .btn-submit {
    background-color: #8a4f56;
}

.auth-card .btn-submit:hover {
    background-color: #a3626a;
}

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ebdcdb;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(138, 79, 86, 0.02);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content h2 {
    color: #8a4f56;
    font-size: 1.35rem;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.session-badge {
    background-color: #f3eae9;
    color: #8a4f56;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    flex: 1;
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: #ffffff;
    border: 1px solid #ebdcdb;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(138, 79, 86, 0.03);
}

.metric-title {
    display: block;
    color: #8c7678;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #5c4a4b;
}

.table-operations {
    background-color: #ffffff;
    border: 1px solid #ebdcdb;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(138, 79, 86, 0.03);
}

.operations-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.operations-toolbar h3 {
    color: #8a4f56;
    font-size: 1.15rem;
}

.operations-toolbar .btn-primary {
    background-color: #8a4f56;
}

.operations-toolbar .btn-primary:hover {
    background-color: #a3626a;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    color: #3d2e2f;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3eae9;
    vertical-align: top;
}

.admin-table th {
    background-color: #fcf9f9;
    color: #8c7678;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ebdcdb;
}

.admin-table tbody tr:hover {
    background-color: #fdfaf9;
}

.admin-table td div strong {
    color: #8a4f56;
}

.admin-table .btn-success {
    background-color: #708d81;
}

.admin-table .btn-success:hover {
    background-color: #5b756a;
}

.admin-table .btn-secondary {
    background-color: #a89f9f;
}

.admin-table .btn-secondary:hover {
    background-color: #8e8585;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.badge-pending {
    background-color: #fbf0df;
    color: #c07d34;
}

.badge-processed {
    background-color: #e8f0ec;
    color: #4a6b5d;
}

.table-feedback {
    text-align: center;
    padding: 2rem;
    color: #c94a53;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* System Global Helpers */
.hidden {
    display: none !important;
}