:root {
    /* Colors */
    --primary: #137fec;
    --accent: #FDB813;
    --background-light: #f6f7f8;
    --background-dark: #101922;

    /* Grayscale */
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Theme */
    --bg-color: var(--background-light);
    --text-color: var(--slate-800);
    --text-secondary: var(--slate-600);
    --border-color: rgba(226, 232, 240, 0.8);
    --card-bg: var(--background-light);
}

.dark {
    --bg-color: var(--background-dark);
    --text-color: var(--slate-200);
    --text-secondary: var(--slate-400);
    --border-color: rgba(30, 41, 59, 0.8);
    --card-bg: var(--background-dark);
}

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

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
}

h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    width: 100%;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(246, 247, 248, 0.8);
    backdrop-filter: blur(4px);
}

.dark .header {
    background-color: rgba(16, 25, 34, 0.8);
}

.header-admin {
    background-color: var(--slate-900) !important;
    border-bottom: 2px solid var(--primary);
}

.header-admin .brand-text h2,
.header-admin .nav a:not(.active) {
    color: white;
}

.header-admin .nav a:hover {
    color: var(--primary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h2 {
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
}

.brand-text h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a.active {
    color: var(--primary);
}

.nav a:not(.active) {
    color: var(--text-secondary);
}

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

.btn-admin-nav {
    background-color: var(--slate-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem !important;
    border: 1px solid var(--slate-200);
}

.dark .btn-admin-nav {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

.btn-back-to-public {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem !important;
    color: white !important;
}

.btn-back-to-public:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
    background-color: rgba(19, 127, 236, 0.1);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.2s ease-out;
    z-index: 1000;
}

.dark .mobile-menu {
    background: var(--background-dark);
    border-color: var(--slate-700);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav a {
    display: block;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--primary);
    background-color: rgba(19, 127, 236, 0.05);
}

.mobile-nav a.active {
    color: var(--primary);
}

.mobile-login-btn {
    margin: 0 1.5rem 1.5rem 1.5rem;
    width: calc(100% - 3rem);
}

.mobile-admin-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.mobile-back-link {
    color: var(--slate-500) !important;
    font-size: 0.875rem !important;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.mobile-user-info .user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #1071d4;
}

.btn-secondary {
    background-color: var(--background-light);
    color: var(--slate-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: var(--slate-200);
}

.dark .btn-secondary:hover {
    background-color: var(--slate-700);
}

.btn-lg {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
}

.btn-md {
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.75rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(16, 25, 34, 0.6) 0%, rgba(16, 25, 34, 0.8) 100%);
    border-radius: 0.75rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero h1 {
    color: white;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero p {
    max-width: 48rem;
    color: var(--slate-200);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .about h2 {
        font-size: 1.875rem;
    }
}

.about p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .about p {
        font-size: 1.125rem;
    }
}

.about a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about a:hover {
    text-decoration: none;
}

/* News/Events Section */
.news-events {
    background-color: white;
}

.dark .news-events {
    background-color: rgba(15, 23, 42, 0.5);
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .news-header h2 {
        font-size: 1.875rem;
    }
}

.news-header p {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .news-header p {
        font-size: 1.125rem;
    }
}

.news-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background-color: var(--card-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.dark .card {
    border-color: var(--slate-800);
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.card-badge {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-badge.news {
    color: var(--primary);
}

.card-badge.event {
    color: var(--accent);
}

.card h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.card p {
    flex-grow: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-date {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.dark .card-date {
    color: var(--slate-400);
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.dark .contact-section {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--slate-900) 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .contact-header h2 {
        font-size: 2.5rem;
    }
}

.contact-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark .contact-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #1a5fb4);
    color: white;
    margin-bottom: 1.25rem;
}

.contact-icon .material-symbols-outlined {
    font-size: 2rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.contact-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1071d4;
    text-decoration: underline;
}

.contact-address {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-map {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    display: block;
}

/* Contact Page Layout */
.contact-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info-side {
    display: flex;
    flex-direction: column;
}

.contact-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-side {
    display: flex;
    flex-direction: column;
}

.contact-form-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-200);
    height: 100%;
}

.dark .contact-form-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-form-card>p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-form-card .form-group {
    margin-bottom: 1rem;
}

.contact-form-card .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.dark .contact-form-card .form-group input,
.dark .contact-form-card .form-group textarea {
    border-color: var(--slate-600);
    background: var(--slate-900);
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
}

.contact-form-card .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-card .validation-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 300px;
}

.form-success .material-symbols-outlined {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-success p:last-of-type {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.dark .form-error {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.form-error .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    background-color: white;
}

.dark .footer {
    background-color: var(--background-dark);
}

.footer-content {
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        padding: 4rem 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.footer-logo h2 {
    font-size: 1.125rem;
    color: var(--text-color);
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--slate-500);
    transition: color 0.2s ease;
}

.dark .social-links a {
    color: var(--slate-400);
}

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

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a,
.footer ul li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer .material-symbols-outlined {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.dark .footer-bottom p {
    color: var(--slate-400);
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
}

/* Utility Classes */
.hidden {
    display: none;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}

/* Blazor Loading Progress */
#app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #e0e0e0;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--text-color);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #ffebe9;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #721c24;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-size: 1.5rem;
}

#blazor-error-ui .reload {
    color: #721c24;
    text-decoration: underline;
}

/* ========================================
   Meeting Pages Styles
   ======================================== */

.meetings-page {
    padding: 2rem 0;
    min-height: calc(100vh - 10rem);
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
}

.dark .search-section {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.search-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .search-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .search-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .form-group input,
.dark .form-group select {
    border-color: var(--slate-600);
    background: var(--slate-900);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
}

.search-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Meetings Grid */
.meetings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .meetings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .meetings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Meeting Card */
.meeting-card {
    display: flex;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.dark .meeting-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile: Stack date on top of content */
@media (max-width: 767px) {
    .meeting-card {
        flex-direction: column;
    }

    .meeting-date {
        flex-direction: row;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
        min-width: auto;
    }

    .meeting-date .day {
        font-size: 1.5rem;
    }

    .meeting-date .month {
        font-size: 0.875rem;
        margin-top: 0;
    }
}

.meeting-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.meeting-badge.special {
    background: var(--accent);
    color: var(--slate-900);
}

.meeting-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #1a5fb4);
    color: white;
    min-width: 5rem;
}

.meeting-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.meeting-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.meeting-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.meeting-topic {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.meeting-speaker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.meeting-speaker .material-symbols-outlined {
    font-size: 1rem;
}

.meeting-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Small buttons */
.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto;
    gap: 0.375rem;
}

.btn-sm .material-symbols-outlined {
    font-size: 1rem;
}

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

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

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 8rem;
    text-align: center;
}

.pagination .btn {
    min-width: auto;
    padding: 0.5rem;
}

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

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.no-results .material-symbols-outlined {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Gospel Page Accent */
.gospel-page .meeting-date {
    background: linear-gradient(135deg, #e85d04, #dc2f02);
}

.gospel-card .meeting-badge {
    background: #e85d04;
}

/* Special Page Accent */
.special-page .meeting-date {
    background: linear-gradient(135deg, var(--accent), #e8a30a);
}

.special-card .meeting-badge {
    background: var(--accent);
    color: var(--slate-900);
}

/* ========================================
   Admin Pages Styles
   ======================================== */

.admin-page {
    padding: 2rem 0;
    min-height: calc(100vh - 10rem);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Admin Table */
.table-container {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
}

.dark .table-container {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}

.dark .admin-table th,
.dark .admin-table td {
    border-color: var(--slate-700);
}

.admin-table th {
    background: var(--slate-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dark .admin-table th {
    background: var(--slate-900);
}

.admin-table tbody tr:hover {
    background: var(--slate-50);
}

.dark .admin-table tbody tr:hover {
    background: var(--slate-700);
}

.topic-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.badge-gospel {
    background: #e85d04;
    color: white;
}

.badge-special {
    background: var(--accent);
    color: var(--slate-900);
}

.media-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

/* Danger Button */
.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dark .modal {
    background: var(--slate-800);
}

.modal h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
}

.dark .form-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.dark .form-control {
    border-color: var(--slate-600);
    background: var(--slate-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

/* Audio Section */
.audio-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

.dark .audio-section {
    border-color: var(--slate-700);
}

.audio-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.current-audio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.current-audio>span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-audio a {
    color: var(--primary);
}

/* Audio Player Styles */
.audio-container {
    margin-top: 0.5rem;
    width: 100%;
    min-width: 200px;
}

.audio-player {
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    height: 40px;
    border-radius: 8px;
    display: block;
}

.meeting-actions .audio-player {
    max-width: 250px;
}

/* Media Links in Admin Table */
.media-cell {
    display: flex;
    gap: 0.5rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.media-link:hover {
    background-color: rgba(19, 127, 236, 0.1);
    color: #1071d4;
}

.media-icon {
    font-size: 1.25rem;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.upload-message {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.upload-message.success {
    background: #dcfce7;
    color: #166534;
}

.upload-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

.dark .form-actions {
    border-color: var(--slate-700);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.validation-message {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: #ef4444 !important;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dark .alert-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.text-secondary {
    color: var(--text-secondary);
}

/* Video Player Styles */
.video-section {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-video {
    gap: 0.5rem;
    transition: all 0.2s ease;
}

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

/* Features Section (Faith/Hope/Mission) */
.features-section {
    background: white;
}

.dark .features-section {
    background: rgba(15, 23, 42, 0.5);
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark .feature-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #1a5fb4);
    color: white;
    margin-bottom: 1.25rem;
}

.feature-icon .material-symbols-outlined {
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.feature-card h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}