/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #722F37;     /* Catholic burgundy */
    --secondary-color: #B4975A;   /* Gold accent */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

header .logo {
    text-align: center;
    padding: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-family: 'Cinzel', serif;  /* More traditional Catholic feel */
}

/* Navigation */
nav {
    background-color: var(--secondary-color);
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Leadership Corner Styles */
.leadership-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    width: 300px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.leadership-corner h3 {
    padding: 15px;
    margin: 0;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    background-color: var(--white);
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.leadership {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f0f0f0;
}

.leadership::-webkit-scrollbar {
    width: 6px;
}

.leadership::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.leadership::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.leader {
    background-color: var(--white);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.leader:last-child {
    margin-bottom: 0;
}

.leader img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.leader p {
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.leader-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem !important;
}

.leader-position {
    color: var(--secondary-color);
}

.leader-contact {
    color: var(--text-color);
    font-size: 0.85rem !important;
}

.read-more-btn {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
}

.leader:nth-child(n+4) {
    display: none;
}

.leadership.expanded .leader:nth-child(n+4) {
    display: block;
}

@media (max-width: 768px) {
    .leadership-corner {
        position: static;
        width: 90%;
        margin: 20px auto;
        max-height: 500px;
    }
    
    .leader p {
        font-size: 0.85rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #8B3D47;
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.payment-status, .upcoming-events {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Metrics Dashboard */
.metric-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .leadership-corner {
        position: static;
        width: 100%;
        margin: 1rem 0;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Login and Registration Forms */
.login-form,
.register-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.login-form h2,
.register-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.2);
}

.form-group button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Links */
.login-form a,
.register-form a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form a:hover,
.register-form a:hover {
    color: var(--secondary-color);
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Success Messages */
.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-sidebar {
    flex: 0 0 250px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.dashboard-content {
    flex: 1;
}

/* User Info */
.user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.user-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

/* Dashboard Sections */
.dashboard-section {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Cards */
.announcement-card,
.event-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.announcement-card h3,
.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        flex: none;
        width: 100%;
    }
}

/* Payment Status Page Styles */
.payment-status-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.status-indicator span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-indicator .paid {
    background-color: #d4edda;
    color: #155724;
}

.status-indicator .unpaid {
    background-color: #f8d7da;
    color: #721c24;
}

/* Payment History Table */
.payment-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.payment-history table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history th,
.payment-history td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

/* News Page Styles */
.news-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-filters {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-summary {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: center;
    }
}

/* Metrics Page Styles */
.metrics-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.metrics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.table-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

/* Status Indicators */
.status-paid {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these to your existing leadership styles */

.leadership {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.leadership.expanded {
    max-height: 2000px; /* Large enough to show all content */
}

.leader:nth-child(n+4) {
    display: none;
}

.leadership.expanded .leader:nth-child(n+4) {
    display: block;
}

.read-more-btn {
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
}

/* Add to leadership styles */
.chaplain-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.chaplain-section img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.chaplain-section h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
}

.chaplain-section .contact-info {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Add to existing prayer section styles */
.prayer-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.rosary-of-day {
    margin-top: 2rem;
    text-align: center;
}

.mass-schedule {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.mass-schedule h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 1.5rem;
}

.mass-schedule table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.mass-schedule th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.mass-schedule td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.mass-schedule tr:last-child td {
    border-bottom: none;
}

.mass-schedule tr:hover {
    background-color: var(--light-bg);
}

@media (max-width: 768px) {
    .mass-schedule {
        padding: 1rem;
    }
    
    .mass-schedule th,
    .mass-schedule td {
        padding: 0.75rem;
    }
}

/* Chaplain Dashboard Styles */
.chaplain-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.chaplain-profile {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    height: fit-content;
}

.chaplain-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.chaplain-profile h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.approval-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.approval-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.approval-content {
    display: none;
}

.approval-content.active {
    display: block;
}

.approval-table {
    width: 100%;
    border-collapse: collapse;
}

.approval-table th,
.approval-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.approval-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.approve-btn,
.reject-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.approve-btn {
    background-color: #28a745;
    color: white;
}

.reject-btn {
    background-color: #dc3545;
    color: white;
}

.approve-btn:hover {
    background-color: #218838;
}

.reject-btn:hover {
    background-color: #c82333;
}

@media (max-width: 768px) {
    .chaplain-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Feedback Page Styles */
.feedback-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.feedback-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-intro h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
}

.feedback-form-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.1);
}

.feedback-form label[for="anonymous"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.feedback-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #8B3D47;
}

.feedback-thankyou {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.thankyou-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 0 1rem;
}

.thankyou-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.close-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .feedback-form-section {
        padding: 1.5rem;
    }
}

/* Post Page Styles */
.post-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.post-section {
    display: none;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.post-section.active {
    display: block;
}

.post-section h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.post-form input[type="file"] {
    padding: 0.5rem 0;
}

.post-form input[type="file"]::file-selector-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 0 1rem;
}

@media (max-width: 768px) {
    .post-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Treasurer Dashboard Styles */
.treasurer-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.payment-forms {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.payment-form {
    max-width: 500px;
    margin: 0 auto;
}

.recent-transactions {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.recent-transactions h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

#transactionsTable {
    width: 100%;
    border-collapse: collapse;
}

#transactionsTable th,
#transactionsTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#transactionsTable th {
    background-color: var(--primary-color);
    color: var(--white);
}

.payment-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

@media (max-width: 768px) {
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

/* Enhanced Metrics Page Styles */
.detailed-tables {
    margin-top: 2rem;
}

.table-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.table-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.subscription-filters {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Enhanced chart styles */
.chart-container {
    min-height: 300px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Rosary Styles */
.rosary-of-day {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.rosary-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.mystery-item {
    margin-bottom: 1.5rem;
}

.mystery-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.mystery-item p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.mystery-meditation {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.rosary-of-day .read-more-btn {
    margin-top: 1rem;
    width: auto;
    padding: 0.5rem 1.5rem;
}

