/* ===================================
   CSS Reset and Base Styles
   =================================== */

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

:root {
    /* Color Palette - Light Mode */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    /* Neutral Colors - Light Mode */
    --bg-color: #ffffff;
    --bg-secondary: #ecf0f1;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --card-bg: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        /* Color Palette - Dark Mode */
        --primary-color: #34495e;
        --secondary-color: #3498db;
        --accent-color: #e74c3c;
        --success-color: #27ae60;
        --warning-color: #f39c12;
        --danger-color: #e74c3c;
        
        /* Neutral Colors - Dark Mode */
        --bg-color: #1a1a1a;
        --bg-secondary: #2c2c2c;
        --text-color: #e4e4e4;
        --text-light: #a0a0a0;
        --border-color: #444444;
        --card-bg: #252525;
        
        /* Shadows - Dark Mode */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* ===================================
   Layout Components
   =================================== */

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ===================================
   Header & Navigation
   =================================== */

#header {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background-color: var(--secondary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    line-height: 1;
    transition: background-color var(--transition-fast);
    border-radius: var(--border-radius-sm);
    position: relative;
    z-index: 300;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===================================
   Main Content
   =================================== */

#main-content {
    flex: 1;
    padding: var(--spacing-xxl) 0;
}

/* ===================================
   Footer
   =================================== */

#footer {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

#footer p {
    margin: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-selectors {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Church Selector */
.church-selector {
    display: flex;
    align-items: center;
}

.church-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 150px;
}

.church-select:hover {
    border-color: var(--secondary-color);
}

.church-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ===================================
   Utility Classes
   =================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ===================================
   Cards and Panels
   =================================== */

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin: 0;
    font-size: var(--font-size-lg);
}

.card-body {
    padding: 0;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #34495e;
}

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

.btn-secondary:hover {
    background-color: #2980b9;
}

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

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

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* ===================================
   Forms
   =================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===================================
   Loading & Alerts
   =================================== */

.loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
}

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-lg);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dark Mode Alert Adjustments */
@media (prefers-color-scheme: dark) {
    .alert-success {
        background-color: #1e4620;
        color: #a3d9a5;
        border-color: #2d5a2e;
    }
    
    .alert-warning {
        background-color: #4d3800;
        color: #ffd966;
        border-color: #6b4f00;
    }
    
    .alert-danger {
        background-color: #4a1c1c;
        color: #f5a3a3;
        border-color: #6b2828;
    }
    
    .alert-info {
        background-color: #0c3544;
        color: #7dd3fc;
        border-color: #164e63;
    }
}

/* ===================================
   Language Selector
   =================================== */

.language-selector {
    display: flex;
    align-items: center;
}

.language-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-select:hover {
    border-color: var(--secondary-color);
}

.language-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    /* Ensure header is above overlay on mobile */
    #header {
        z-index: 300;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Show overlay when active */
    .mobile-menu-overlay {
        display: block;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Mobile menu - hidden by default */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        max-width: 80%;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding-top: 80px;
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
        padding-bottom: var(--spacing-xxl);
        box-shadow: var(--shadow-lg);
        z-index: 200;
        transition: right var(--transition-base);
        overflow-y: auto;
    }
    
    /* Mobile menu active state */
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        text-align: left;
        padding: var(--spacing-md);
        width: 100%;
        border-radius: 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .language-selector {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-selectors {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    #main-content {
        padding: var(--spacing-lg) 0;
    }
}

/* ===================================
   Wizard Styles
   =================================== */

.wizard-header {
    padding-bottom: var(--spacing-lg);
}

.wizard-progress {
    margin: var(--spacing-lg) 0;
}

.wizard-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
}

.progress-step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: var(--font-size-sm);
    text-align: center;
    margin: 0;
}

.wizard-step {
    min-height: 300px;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-col {
    flex: 1;
}

.add-item-form {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: box-shadow var(--transition-fast);
}

.item-card:hover {
    box-shadow: var(--shadow-sm);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.remove-btn:hover {
    transform: scale(1.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.radio-label:hover {
    background-color: var(--bg-secondary);
}

.radio-input {
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.checkbox-input {
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .wizard-progress-steps {
        flex-wrap: wrap;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* ===================================
   Church Management Styles
   =================================== */

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Member Chips */
.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.875rem;
}

.chip-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.chip-remove:hover {
    transform: scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: var(--spacing-md);
    overflow-y: auto;
}

/* Member Search Item */
.member-search-item {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.member-search-item:hover {
    background-color: var(--bg-secondary);
}

.member-search-item:last-child {
    border-bottom: none;
}

/* Part Card */
.part-card {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-color);
}

/* Small Button Variant */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Form Inline */
.form-inline {
    display: flex;
    gap: var(--spacing-sm);
    align-items: end;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-input {
    cursor: pointer;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    cursor: pointer;
}

/* Edit Mode Styles */
.department-name-edit,
.meeting-name-edit {
    max-width: 300px;
}

/* Item Cards for Meetings/Parts */
.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-color);
}

/* Add Part Form */
.add-part-form {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
}

/* Member Search Input Component */
.member-search-input {
    position: relative;
    width: 100%;
}

.member-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.member-search-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    border-bottom: 1px solid var(--bg-secondary);
    transition: background-color var(--transition-fast);
}

.member-search-item:hover,
.member-search-item.selected {
    background-color: var(--bg-secondary);
}

.member-search-item:last-child {
    border-bottom: none;
}

.member-search-item .member-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.member-search-item .member-email {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.member-search-no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .card-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ===================================
   Home Page Two-Column Layout
   =================================== */

:root {
    --home-sidebar-width: 350px;
}

.home-two-column {
    display: grid;
    grid-template-columns: var(--home-sidebar-width) 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.home-two-column .schedule-column {
    position: sticky;
    top: var(--spacing-lg);
}

.home-two-column .assignment-list li:last-child {
    border-bottom: none;
}

.home-two-column .post-item:last-child {
    border-bottom: none;
}

/* Responsive layout for home page */
@media (max-width: 1024px) {
    .home-two-column {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .home-two-column {
        grid-template-columns: 1fr;
    }
    
    .home-two-column .schedule-column {
        position: static;
    }
}

/* Mobile tab bar for home page */
.home-tabs {
    display: none;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--card-bg);
}

.home-tabs .tab-button {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: none;
    border-radius: 0;
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-right: 1px solid var(--border-color);
}

.home-tabs .tab-button:last-child {
    border-right: none;
}

.home-tabs .tab-button:hover {
    background: var(--bg-color);
}

.home-tabs .tab-button.active {
    background: var(--secondary-color);
    color: white;
}

/* Show tab bar on mobile */
@media (max-width: 768px) {
    .home-tabs {
        display: flex;
    }
    
    /* Hide both columns by default on mobile */
    .home-two-column .schedule-column,
    .home-two-column .posts-column {
        display: none;
    }
    
    /* Show only the active column on mobile */
    .home-two-column .schedule-column.active,
    .home-two-column .posts-column.active {
        display: block;
    }
}

/* Desktop: hide tabs and show both columns */
@media (min-width: 769px) {
    .home-tabs {
        display: none !important;
    }
    
    .home-two-column .schedule-column,
    .home-two-column .posts-column {
        display: block !important;
    }
}

/* Volunteer Request Styles */
.volunteer-request {
    transition: background-color 0.2s ease;
}

.volunteer-request:hover {
    background-color: #fff9e6;
}

.assignment-info {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meeting-part {
    transition: background-color 0.2s ease;
}

.meeting-part:hover {
    background-color: var(--bg-light);
}

.meeting-part:last-child {
    border-bottom: none;
}

/* Button group for time range selector */
.btn-group {
    display: inline-flex;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-group .btn:last-child {
    border-right: none;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

/* Success and warning button variants */
.btn-success {
    background-color: #28a745;
    color: white;
}

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

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* ===================================
   Home Public Page Styles
   =================================== */

.home-welcome-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.home-welcome-header h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-sm);
}

.welcome-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin: 0;
}

/* Two-card layout for public home */
.home-public-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.home-public-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-public-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-public-card .card-header {
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin: calc(-1 * var(--spacing-lg));
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.home-public-card .card-title {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

.home-public-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-public-card .card-description {
    font-size: var(--font-size-base);
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
    flex: 1;
}

.benefit-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.card-cta {
    text-align: center;
    margin-top: auto;
    padding-top: var(--spacing-lg);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    width: 100%;
}

/* Mobile tab bar for public home page */
.home-public-tabs {
    display: none;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--card-bg);
}

.home-public-tabs .tab-button {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: none;
    border-radius: 0;
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-right: 1px solid var(--border-color);
}

.home-public-tabs .tab-button:last-child {
    border-right: none;
}

.home-public-tabs .tab-button:hover {
    background: var(--bg-color);
}

.home-public-tabs .tab-button.active {
    background: var(--secondary-color);
    color: white;
}

/* Responsive styles for public home */
@media (max-width: 768px) {
    .home-public-tabs {
        display: flex;
    }
    
    .home-public-cards {
        grid-template-columns: 1fr;
    }
    
    /* Hide cards by default on mobile */
    .home-public-card {
        display: none;
    }
    
    /* Show only the active card on mobile */
    .home-public-card.active {
        display: flex;
    }
    
    .home-welcome-header h1 {
        font-size: var(--font-size-xl);
    }
    
    .welcome-subtitle {
        font-size: var(--font-size-base);
    }
}

/* Desktop: hide tabs and show both cards */
@media (min-width: 769px) {
    .home-public-tabs {
        display: none !important;
    }
    
    .home-public-card {
        display: flex !important;
    }
}
