/* ================================================
   Geneseo Groveland Emergency Food Pantry
   Shared Stylesheet
   ================================================ */

/* CSS Variables */
:root {
    --primary-green: #09cc5e;
    --secondary-green: #8fce00;
    --dark-blue: #233252;
    --darker-blue: #1a2640;
    --light-bg: #eef4f7;
    --lighter-bg: #f8fafb;
    --text-dark: #242527;
    --text-gray: #666;
    --text-light: #888;
    --white: #ffffff;
    --border-light: #e0e0e0;
    --shadow: rgba(35, 50, 82, 0.15);
    --shadow-green: rgba(9, 204, 94, 0.4);
}

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

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #d4e5ed 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Header & Navigation
   ================================================ */
header {
    background: var(--dark-blue);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 500;
}

.header-contact {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    align-items: center;
}

/* Header Language Selector */
.language-selector-header {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.language-selector-header button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector-header button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.language-selector-header button.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.header-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.header-contact a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

/* Auth Nav Links */
.login-nav-link {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

.login-nav-link:hover {
    background: var(--dark-blue) !important;
}

#adminNavItem {
    align-self: center;
}

.admin-nav-link {
    background: var(--dark-blue) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

.admin-nav-link:hover {
    background: var(--primary-green) !important;
}

.user-nav-link {
    color: var(--primary-green) !important;
    font-weight: 500 !important;
}

/* Navigation */
nav {
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 5px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--primary-green);
    text-decoration: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--darker-blue);
    min-width: 220px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ================================================
   Main Content Area
   ================================================ */
main {
    padding: 50px 0;
}

.content-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Section Styling */
.section {
    margin-bottom: 40px;
}

.section h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.section p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Info Box */
.info-box {
    background: var(--lighter-bg);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    margin: 20px 0;
}

.info-box h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: var(--primary-green);
    border-bottom: none;
    margin-bottom: 15px;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #07a34b 100%);
    color: var(--white);
    box-shadow: 0 5px 20px var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-green);
    color: var(--white);
    text-decoration: none;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

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

/* ================================================
   Cards & Grids
   ================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: var(--lighter-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--light-bg);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 5px 20px rgba(9, 204, 94, 0.15);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ================================================
   Stats Section
   ================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: var(--light-bg);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ================================================
   Progress Bar (Fundraising)
   ================================================ */
.progress-section {
    margin: 40px 0;
}

.amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.amount-raised {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.amount-goal {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-align: right;
}

.amount-goal span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.progress-bar-container {
    background: var(--light-bg);
    border-radius: 25px;
    height: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    height: 100%;
    border-radius: 25px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* ================================================
   FAQ Accordion
   ================================================ */
.faq-list {
    margin: 30px 0;
}

.faq-item {
    background: var(--lighter-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--light-bg);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ================================================
   Lists
   ================================================ */
.item-list {
    list-style: none;
    margin: 20px 0;
}

.item-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid var(--light-bg);
    color: var(--text-gray);
}

.item-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.item-list li:last-child {
    border-bottom: none;
}

/* Category Lists */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category {
    background: var(--lighter-bg);
    padding: 25px;
    border-radius: 15px;
}

.category h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}

.category ul {
    list-style: none;
}

.category li {
    padding: 8px 0;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category li:last-child {
    border-bottom: none;
}

/* ================================================
   Events/News
   ================================================ */
.event-card {
    background: var(--lighter-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-green);
}

.event-date {
    display: inline-block;
    background: var(--dark-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.event-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.event-card p {
    color: var(--text-gray);
}

/* ================================================
   Contact Info
   ================================================ */
.contact-section {
    text-align: center;
    padding: 30px;
    background: var(--lighter-bg);
    border-radius: 15px;
    margin-top: 30px;
}

.contact-section h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    border: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.contact-item {
    padding: 20px;
}

.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-item h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
}

.hours-badge {
    display: inline-block;
    background: var(--dark-blue);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ================================================
   Footer
   ================================================ */
footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-contact {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
    }

    .content-card {
        padding: 25px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amount-raised {
        font-size: 1.8rem;
    }

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Multi-Tenant Platform Styles
   ================================================ */

/* Organization Branding Override */
:root {
    --org-primary-color: var(--primary-green);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
    align-items: center;
}

.language-selector button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector button:hover,
.language-selector button.active {
    background: var(--org-primary-color);
    border-color: var(--org-primary-color);
    color: var(--white);
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ================================================
   Forms & Inputs
   ================================================ */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

label .required {
    color: #dc3545;
    margin-left: 3px;
}

label .optional {
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.9em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--org-primary-color);
    box-shadow: 0 0 0 3px rgba(9, 204, 94, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--light-bg);
    color: var(--text-light);
    cursor: not-allowed;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545;
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group.horizontal,
.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input,
.radio-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--org-primary-color);
}

/* Form Help Text */
.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.error-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #dc3545;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.form-actions.center {
    justify-content: center;
}

.form-actions.right {
    justify-content: flex-end;
}

.form-actions.between {
    justify-content: space-between;
}

/* ================================================
   Authentication Pages
   ================================================ */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-gray);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--dark-blue);
}

.auth-tab.active {
    color: var(--org-primary-color);
    border-bottom-color: var(--org-primary-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.auth-footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Phone Verification */
.verification-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.verification-input input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 10px;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* ================================================
   Dashboard & Portal Styles
   ================================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    color: var(--dark-blue);
    font-size: 1.8rem;
}

.dashboard-welcome {
    background: linear-gradient(135deg, var(--org-primary-color) 0%, #07a34b 100%);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.dashboard-welcome h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.dashboard-welcome p {
    opacity: 0.9;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved,
.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.matched {
    background: #cce5ff;
    color: #004085;
}

.status-badge.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.cancelled,
.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-bg);
}

.data-table th {
    background: var(--lighter-bg);
    color: var(--dark-blue);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--lighter-bg);
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions button,
.data-table .actions a {
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 0.85rem;
}

/* ================================================
   Household Members Section
   ================================================ */
.member-card {
    background: var(--lighter-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid var(--light-bg);
    position: relative;
}

.member-card .member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.member-card .member-number {
    background: var(--dark-blue);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.member-card .remove-member {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s;
}

.member-card .remove-member:hover {
    transform: scale(1.1);
}

.add-member-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px;
    background: var(--lighter-bg);
    border: 2px dashed var(--border-light);
    border-radius: 15px;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-member-btn:hover {
    border-color: var(--org-primary-color);
    color: var(--org-primary-color);
    background: rgba(9, 204, 94, 0.05);
}

/* ================================================
   Program Selection Cards
   ================================================ */
.program-card {
    background: var(--lighter-bg);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--light-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-card:hover {
    border-color: var(--org-primary-color);
}

.program-card.selected {
    border-color: var(--org-primary-color);
    background: rgba(9, 204, 94, 0.05);
}

.program-card input[type="checkbox"] {
    display: none;
}

.program-card .program-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.program-card .program-icon {
    font-size: 2rem;
}

.program-card h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.program-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-left: 55px;
}

.program-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    margin-left: 55px;
}

/* ================================================
   Landing Page - Choose Path
   ================================================ */
.path-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.path-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.path-card:hover {
    transform: translateY(-10px);
    border-color: var(--org-primary-color);
}

.path-card .path-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.path-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.path-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    min-height: 60px;
}

/* Organization Selection Grid */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.org-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--light-bg);
    cursor: pointer;
}

.org-card:hover {
    border-color: var(--org-primary-color);
    transform: translateY(-5px);
}

.org-card.selected {
    border-color: var(--org-primary-color);
    background: rgba(9, 204, 94, 0.05);
}

.org-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.org-card .org-districts {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ================================================
   Alerts & Notifications
   ================================================ */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 3px;
}

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

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

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

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ================================================
   Loading States
   ================================================ */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-bg);
    border-radius: 50%;
    border-top-color: var(--org-primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay p {
    margin-top: 15px;
    color: var(--text-gray);
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ================================================
   Stepper / Progress Steps
   ================================================ */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--light-bg);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--org-primary-color);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--org-primary-color);
    color: var(--white);
}

.step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
}

.step.active .step-label {
    color: var(--dark-blue);
    font-weight: 500;
}

/* ================================================
   Responsive Additions
   ================================================ */
@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .path-selection {
        grid-template-columns: 1fr;
    }

    .stepper {
        flex-direction: column;
        gap: 20px;
    }

    .stepper::before {
        display: none;
    }

    .step {
        flex-direction: row;
        gap: 15px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .verification-input input {
        width: 40px;
        height: 50px;
        font-size: 1.3rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
