/* === Tätzschwitz Design System === */
/* Wappenfarben */
:root {
    --color-primary: #53941c;      /* Grün aus Wappen */
    --color-secondary: #2e166c;    /* Lila aus Wappen */
    --color-primary-light: #6db023;
    --color-primary-dark: #3d6b14;
    --color-secondary-light: #4a2b8f;
    --color-secondary-dark: #1f0f47;
    
    /* Neutral colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Base Styles - Mobile First */
* {
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    margin: 0;
    padding: 0;
    background: var(--color-gray-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--color-secondary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

h1:focus {
    outline: none;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 148, 28, 0.3);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 22, 108, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-link {
    background: transparent;
    color: var(--color-primary);
    padding: 0;
    border: none;
}

/* Focus States */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
    outline: none;
}

/* Content Container */
.content {
    padding: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .content {
        padding: var(--spacing-xl);
    }
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-gray-900);
    background: white;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(83, 148, 28, 0.1);
    outline: none;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-primary);
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.darker-border-checkbox.form-check-input {
    border-color: var(--color-gray-600);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .card {
        padding: var(--spacing-xl);
    }
}

/* Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #dc2626;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Carousel */
.carousel-item {
    transition: transform 2s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    transition: opacity 0s 2s;
}

/* Utility Classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* === SiegelCMS Styles === */

/* Termine Page Wrapper */
.termine-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 768px) {
    .termine-page-wrapper {
        padding: 0 1rem;
    }
}

@media (min-width: 1024px) {
    .termine-page-wrapper {
        padding: 0 2rem;
    }
}

/* Calendar Event View */
.calendar-event-view {
    min-height: 100vh;
    background: linear-gradient(135deg, #53941c 0%, #2e166c 100%);
    padding: 0.75rem 0.5rem;
}

@media (min-width: 768px) {
    .calendar-event-view {
        padding: 3rem 1rem;
    }
}

/* Hero Section */
.events-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out both;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 1.5rem 0;
}

/* Calendar Subscribe Section */
.calendar-subscribe-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.calendar-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.calendar-subscribe-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subscribe-icon {
    width: 20px;
    height: 20px;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

/* Subscribe Info Box */
.subscribe-info-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscribe-info-box h3 {
    color: #2e166c;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.subscribe-info-box p {
    color: #4a5568;
    margin: 0 0 1rem 0;
}

/* URL Box */
.url-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.url-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2e166c;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
}

.url-input:focus {
    outline: none;
    border-color: #53941c;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.2rem;
    background: #53941c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #3d6b14;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 148, 28, 0.3);
}

.copy-icon {
    width: 18px;
    height: 18px;
}

/* Instructions */
.instructions {
    background: #f0f8e8;
    border-left: 4px solid #53941c;
    padding: 1rem;
    border-radius: 8px;
}

.instructions h4 {
    color: #2e166c;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.instructions ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #4a5568;
}

.instructions li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.instructions li::before {
    content: "\2192";  /* Unicode Rightwards Arrow */
    position: absolute;
    left: 0;
    color: #53941c;
    font-weight: bold;
    font-size: 1.2rem;
}

.instructions strong {
    color: #2e166c;
}

@media (min-width: 768px) {
    .calendar-subscribe-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.6rem;
    }
    
    .subscribe-icon {
        width: 22px;
        height: 22px;
    }
    
    .subscribe-info-box {
        padding: 2rem;
    }
    
    .url-input {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .url-box {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .events-hero {
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin: 0 0 2rem 0;
    }
}

/* Container */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Event */
.featured-event {
    background: white;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    position: relative;
    animation: slideUp 0.8s ease-out both;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .featured-event {
        border-radius: 24px;
        margin-bottom: 3rem;
        padding-bottom: 4rem;
    }
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #53941c 0%, #3d6b14 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(83, 148, 28, 0.4);
    z-index: 10;
    margin: 0.5rem;
}

@media (min-width: 768px) {
    .featured-badge {
        top: 20px;
        right: 20px;
        font-size: 0.9rem;
        margin: 0;
    }
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .featured-content {
        flex-direction: row;
        gap: 2rem;
        padding: 2.5rem;
    }
}

.featured-date-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.featured-date-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #53941c 0%, #2e166c 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(83, 148, 28, 0.4);
}

@media (min-width: 768px) {
    .featured-date-circle {
        width: 140px;
        height: 140px;
        box-shadow: 0 10px 30px rgba(83, 148, 28, 0.4);
    }
}

.featured-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 768px) {
    .featured-day {
        font-size: 3rem;
    }
}

.featured-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.featured-time {
    font-size: 1rem;
    font-weight: 600;
    color: #53941c;
    background: #f0f8e8;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .featured-time {
        font-size: 1.1rem;
    }
}

.featured-info {
    flex: 1;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e166c;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 2.5rem;
    }
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 1rem;
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: #53941c;
    flex-shrink: 0;
}

.featured-description {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* ICS Download Button */
.ics-download-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(83, 148, 28, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(83, 148, 28, 0.3);
    z-index: 5;
}

.ics-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 148, 28, 0.4);
    background: rgba(83, 148, 28, 1);
}

.ics-download-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .ics-download-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
}

/* Upcoming Header */
.upcoming-header {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out both;
}

@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2rem;
    }
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.event-date-badge {
    background: linear-gradient(135deg, #53941c 0%, #2e166c 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.badge-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.badge-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.25rem;
}

.event-content {
    padding: 1.5rem;
}

.event-time-tag {
    display: inline-block;
    background: #f0f8e8;
    color: #53941c;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e166c;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .event-title {
        font-size: 1.5rem;
    }
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.detail-icon {
    width: 14px;
    height: 14px;
    color: #53941c;
    flex-shrink: 0;
}

.event-desc {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ICS Download Button Small */
.ics-download-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: rgba(83, 148, 28, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(83, 148, 28, 0.25);
    margin-top: 0.75rem;
}

.ics-download-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(83, 148, 28, 0.35);
    background: rgba(83, 148, 28, 1);
}

.ics-download-btn-small:active {
    transform: translateY(0);
}

.btn-icon-small {
    width: 14px;
    height: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.empty-state p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-state p {
    font-size: 1.2rem;
    margin: 0;
}

/* CMS Editor Styles */
.cms-editor {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header h2 {
    margin: 0 0 2rem 0;
    color: #1a1a1a;
    font-size: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #0066cc;
    background: #f5f5f5;
}

.tab-button.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    animation: fadeInTab 0.3s;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toolbar */
.toolbar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CMS Editor specific buttons (more specific than base .btn) */
.cms-editor .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.btn-edit {
    background: #28a745;
    color: white;
}

.btn-edit:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Table */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Modal Overlay */
.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;
    animation: fadeInModal 0.2s;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUpModal 0.3s;
}

@keyframes slideUpModal {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* CMS Form Groups (more specific) */
.cms-editor .form-group {
    margin-bottom: 1.5rem;
}

.cms-editor .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.cms-editor .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.cms-editor .form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    animation: slideInNotification 0.3s;
    font-weight: 500;
}

@keyframes slideInNotification {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for CMS Editor */
@media (max-width: 768px) {
    .cms-editor {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
    
    .featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .event-card {
        border-radius: 16px;
    }
}