:root {
    --primary-blue: #1E88E5;
    --secondary-blue: #1565C0;
    --light-blue: #E1F5FE;
    --accent-blue: #90CAF9;
    --hover-blue: #1565C0;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-800: #343A40;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-blue: linear-gradient(135deg, #1E88E5, #1565C0);
}

body {
    background-color: var(--light-blue);
    background-image: linear-gradient(120deg, #E1F5FE 0%, #B3E5FC 100%);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    min-height: 100vh;
}

.container {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background-color: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.breadcrumb-item a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: var(--hover-blue);
    background-color: var(--light-blue);
}

.breadcrumb-item.active {
    color: var(--primary-blue);
    font-weight: 600;
}

footer {
    background-color: var(--white);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
}

footer a {
    color: var(--secondary-blue);
    text-decoration: none;
    margin: 0 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer a:hover {
    color: var(--hover-blue);
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

footer a i {
    font-size: 1.1rem;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.separator {
    color: var(--gray-200);
    margin: 0 10px;
    font-weight: 300;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    footer a {
        margin: 0 10px;
        padding: 0.4rem 0.8rem;
    }
}

#content {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Parish Detail Page Styles - Related to parish_detail.html */
/* TODO: Extract these styles to a separate CSS file in the future to improve maintainability */
/* These styles are temporarily placed here to fix HTMX page transition issues */
.parish-header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.parish-header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.contact-info {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.contact-info h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.contact-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--light-blue);
}
.contact-item i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}
.schedules-section h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.schedule-type-section {
    margin-bottom: 2rem;
}
.schedule-type-title {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.verified {
    color: #2ecc71;
}
@media (max-width: 768px) {
    .parish-header {
        padding: 1.5rem;
    }
    .parish-header h2 {
        font-size: 1.5rem;
    }
    .contact-item {
        margin-right: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Home Page Styles - Related to home.html */
/* TODO: Extract these styles to a separate CSS file in the future to improve maintainability */
/* These styles are temporarily placed here to avoid inline CSS */
.project-explanation {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-left: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}
.project-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.75rem;
}
.project-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.4;
}
.parish-form-card {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}
.parish-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}
.parish-form-title {
    color: #2E7D32;
    font-weight: 600;
    font-size: 1.5rem;
}
.section-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
}
.state-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FFFFFF, #F8FDFF);
    border: 1px solid rgba(30, 136, 229, 0.1);
}
.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.15);
    border-color: rgba(30, 136, 229, 0.3);
}
.state-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.state-link {
    color: var(--primary-blue);
    transition: all 0.3s ease;
}
.state-link:hover {
    color: var(--hover-blue);
    text-decoration: underline;
}
.city-badge {
    border: 1px solid rgba(30, 136, 229, 0.2);
    transition: all 0.3s ease;
    background: rgba(30, 136, 229, 0.05);
    color: var(--primary-blue);
    font-weight: 500;
}
.city-badge:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}
.stats-card {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
}
.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
}
.stats-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.2);
}
.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}
.stats-number {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.contact-card {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.2);
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}
.contact-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 1rem;
}
.contact-title {
    color: #2E7D32;
    font-weight: 600;
    font-size: 1.5rem;
}
.opensource-card {
    background: linear-gradient(135deg, #F5F5F5, #EEEEEE);
    border: 1px solid rgba(158, 158, 158, 0.2);
    transition: all 0.3s ease;
}
.opensource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(158, 158, 158, 0.15);
}
.opensource-title {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.5rem;
}
.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-outline-secondary {
    border: 2px solid var(--gray-800);
    color: var(--gray-800);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background: var(--gray-800);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 58, 64, 0.3);
}

/* HTMX Loading Indicator - Global */
.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator {
    opacity: 1;
}
.htmx-request.htmx-indicator {
    opacity: 1;
}

#global-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cities List Page Styles - Related to cities_by_state.html */
/* TODO: Extract these styles to a separate CSS file in the future to improve maintainability */
/* These styles are temporarily placed here to fix UI consistency issues */
.city-badge-inactive {
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--gray-200) !important;
    background-color: var(--gray-100) !important;
    color: var(--gray-800) !important;
}
.city-badge-inactive:hover {
    background-color: var(--gray-200) !important;
    transform: scale(1.02);
    border-color: var(--gray-300) !important;
}
