/* Dance Destination - Main Stylesheet */
/* Converted from Tailwind CSS to regular CSS */

/* CSS Variables - Centralized Design System */
:root {
    /* Brand Colors */
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #FF6B9D 100%);
    --secondary-gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --purple-gradient: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    --light-gradient: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    --success-gradient: linear-gradient(135deg, #10B981, #059669);
    --warning-gradient: linear-gradient(135deg, #F59E0B, #D97706);
    --error-gradient: linear-gradient(135deg, #EF4444, #DC2626);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Common Values */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.25);
    --backdrop-blur: blur(10px);
    
    /* Layout */
    --max-width: 1200px;
    --container-padding: 20px;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
}

.nav-menu a:hover {
    color: #7C3AED;
}

.btn-primary {
    background: #7C3AED;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #6D28D9;
    color: white !important;
    text-decoration: none;
}

.dashboard-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.dashboard-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.dashboard-btn:hover:before {
    left: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dance-header-mob.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dance-header-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.typewriter-text {
    font-size: 1.3rem;
    font-family: serif;
    font-style: italic;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: none;
}

.hero-btn-primary {
    background: var(--secondary-gradient);
    color: white;
    border: 2px solid transparent;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    color: white;
    text-decoration: none;
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.hero-highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-highlight h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-highlight p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.typewriter-cursor {
    animation: blink 1s infinite;
    color: #C084FC;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .typewriter-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        min-height: 50px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 1rem;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-highlight {
        padding: 1rem;
        text-align: center;
    }
    
    .hero-highlight h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-highlight p {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* About Section */
.about-section {
    background: var(--light-gradient);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 18px;
    color: #374151;
}

.carousel-nav:hover {
    background: white;
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: white;
}

.about-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #111827;
}

.about-content p {
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.7;
}

.specializations {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.specializations h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.specializations ul {
    list-style: none;
    color: #374151;
}

.specializations li {
    margin-bottom: 8px;
}

.contact-info {
    color: #6B7280;
    margin-top: 20px;
}

.contact-info a {
    color: #EC4899;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Classes Section */
.classes-section {
    background: white;
}

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

.class-card {
    background: var(--light-gradient);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.class-icon {
    height: 120px;
    background: var(--purple-gradient);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.class-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.class-card p {
    color: #6B7280;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.class-details {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 16px;
}

.class-details p {
    margin-bottom: 4px;
}

.class-details strong {
    color: #374151;
}

.btn-class {
    background: #7C3AED;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-class:hover {
    background: #6D28D9;
}

/* Schedule */
.schedule {
    background: var(--light-gradient);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-top: 60px;
}

.schedule h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 32px;
    color: #111827;
    font-weight: 300;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.schedule-item h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.schedule-item p {
    color: #6B7280;
    margin-bottom: 4px;
}

/* Events Section */
.events-section {
    background: var(--light-gradient);
}

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

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

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-icon {
    height: 200px;
    background: var(--purple-gradient);
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}

.event-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.event-date-container {
    margin-bottom: 12px;
}

.event-date-prefix {
    color: #6B7280;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 2px;
}

.event-date-main {
    color: #7C3AED;
    font-weight: 700;
    font-size: 14px;
}

.event-date {
    color: #7C3AED;
    font-weight: 500;
    margin-bottom: 12px;
}

.event-card p {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.event-link {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.event-link:hover {
    color: #6D28D9;
}

.event-location {
    color: #4B5563;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Event modal styles moved to css/modal.css */

/* Loading state for events */
.events-loading {
    text-align: center;
    padding: 40px;
    color: #6B7280;
}

.events-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Newsletter */
.newsletter {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    text-align: center;
    margin-top: 60px;
}

.newsletter h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #111827;
    font-weight: 300;
}

.newsletter p {
    color: #6B7280;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
}

.newsletter-input {
    flex: 1;
    height: 48px;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
}

.newsletter-input:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-newsletter {
    background: #7C3AED;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-newsletter:hover {
    background: #6D28D9;
}

.newsletter-note {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 12px;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details h3 {
    font-size: 24px;
    margin-bottom: 32px;
    color: #111827;
    font-weight: 300;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #F3E8FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #7C3AED;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.contact-item p {
    color: #6B7280;
    font-size: 14px;
}

/* FAQ */
.faq {
    margin-top: 48px;
}

.faq h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
    font-weight: 300;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.faq-item p {
    color: #6B7280;
    font-size: 14px;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
    font-weight: 300;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    height: 48px;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea {
    height: 96px;
    padding: 12px 16px;
    resize: vertical;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* HTML5 Validation States */
.form-input:valid, .form-textarea:valid {
    border-color: #10B981;
}

.form-input:invalid:not(:placeholder-shown), .form-textarea:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

/* Error Messages */
.form-error {
    display: none;
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

/* Success state */
.form-group.success .form-input,
.form-group.success .form-textarea {
    border-color: #10B981;
    background-color: #F0FDF4;
}

/* Error state */
.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* Phone number formatting hint */
#phone::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Enhanced message input to look more prominent */
#message.form-input {
    padding: 16px;
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
}

/* Name field improvements */
#name::placeholder {
    color: #9CA3AF;
    font-style: italic;
}

.form-note {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.form-note p {
    font-size: 12px;
    color: #92400E;
    margin: 0;
}

.btn-submit {
    width: 100%;
    background: #7C3AED;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-submit:hover {
    background: #6D28D9;
}

.btn-submit:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* CTA Section */
.cta-section {
    background: var(--secondary-gradient);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 300;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: #7C3AED;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    background: #F3F4F6;
    color: #7C3AED;
    text-decoration: none;
}

/* Parent Login Styles */
.login-page {
    min-height: 100vh;
    background: var(--light-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #7C3AED;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
}

.back-link:hover {
    color: #6D28D9;
    text-decoration: none;
}

.login-logo {
    height: 48px;
    margin: 0 auto 24px;
    display: block;
    transform: scale(1.3);
}

.login-title {
    font-size: 36px;
    font-weight: 300;
    color: #111827;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #6B7280;
}

.login-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.code-input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.3em;
}

.form-help {
    font-size: 14px;
    color: #6B7280;
    margin-top: 8px;
}

.btn-secondary {
    background: none;
    color: #7C3AED;
    border: none;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: #6D28D9;
}

.demo-note {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.demo-note p {
    font-size: 12px;
    color: #92400E;
    margin: 0;
}

.error-message {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.error-message p {
    color: #DC2626;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-bg-mobile {
        display: none;
    }
    
    .hero-bg-desktop {
        display: block;
    }
    
    .typewriter-text {
        font-size: 32px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .hero-content {
        margin-top: 200px;
    }
    
    .typewriter-text {
        font-size: 20px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    /* Hero section for small mobile */
    .hero-section {
        min-height: 100vh;
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .typewriter-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        min-height: 40px;
    }
    
    .hero-highlights {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    .hero-highlight {
        padding: 0.75rem;
    }
    
    .hero-highlight h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-highlight p {
        font-size: 0.8rem;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu,
    .btn-primary,
    .btn-secondary,
    .btn-submit,
    .btn-cta {
        display: none;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .hero-section {
        height: auto;
        padding: 40px 0;
    }
}

/* Instagram link styling */
.contact-item a[href*="instagram"],
.hero-content a[href*="instagram"] {
    color: #8B5CF6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a[href*="instagram"]:hover,
.hero-content a[href*="instagram"]:hover {
    color: #7C3AED !important;
}

/* =============================================================================
   DANCER LOGIN PAGE STYLES
   ============================================================================= */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/dance-header-new.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.login-container {
    text-align: center;
    color: white;
    max-width: 500px;
    width: 100%;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.login-container .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-container .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
    opacity: 0.9;
}

.login-container .form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.login-container .form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-container .form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.login-container .btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #FF6B9D, #6C63FF);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.login-container .btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.login-container .btn-secondary {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 3;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.message-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.message-success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.message-warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-help {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-align: center;
}

/* Login Page Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .back-link {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   VIDEOS PAGE STYLES
   =================================== */

/* Videos page specific styles */
.videos-section {
    padding: 100px 0 80px;
    background: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 140px;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.4));
    z-index: 2;
}

.video-play-icon {
    font-size: 32px;
    color: white;
    z-index: 3;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-thumbnail-image {
    transform: scale(1.05);
}

/* Fallback for missing images */
.video-thumbnail:not(:has(.video-thumbnail-image))::before {
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.8));
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #6B7280;
    font-size: 12px;
}

.video-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-header {
    background: #F9FAFB;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.video-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #E5E7EB;
    color: #374151;
}

.video-modal-body {
    padding: 0;
}

.video-embed {
    width: 100%;
    height: 500px;
    border: none;
    background: #000;
}

.video-modal-info {
    padding: 20px;
    background: white;
}

.video-modal-meta {
    display: flex;
    gap: 30px;
    color: #6B7280;
    font-size: 14px;
    margin-top: 10px;
}

.video-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===================================
   GALLERY PAGE STYLES
   =================================== */

/* Gallery page specific styles */
.gallery-section {
    padding: 100px 0 80px;
    background: white;
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Tag Cloud Styles */
.tag-cloud-section {
    background: #F9FAFB;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
}

.tag-cloud-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-cloud-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-item {
    background: white;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-item:hover {
    border-color: #7C3AED;
    color: #7C3AED;
    transform: translateY(-1px);
}

.tag-item.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.clear-filters-btn {
    background: #EF4444;
    border: 2px solid #EF4444;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.clear-filters-btn:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.gallery-description {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gallery-tag {
    background: #F3F4F6;
    color: #6B7280;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.modal-image {
    width: 100%;
    height: auto;
    max-width: 1024px;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 20px;
    background: white;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.modal-description {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tag {
    background: var(--light-gradient);
    color: #7C3AED;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Filter Results Info */
.filter-results {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #F0F9FF;
    border-radius: var(--border-radius);
    color: #0369A1;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #D1D5DB;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #374151;
}

/* Shared Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===================================
   RESPONSIVE DESIGN FOR VIDEOS & GALLERY
   =================================== */

/* Mobile Responsive for Videos */
@media (max-width: 768px) {
    .videos-section {
        padding: 80px 0 60px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .video-thumbnail-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .video-play-icon {
        font-size: 48px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .video-meta {
        font-size: 14px;
    }
    
    /* Mobile modal - full screen without header/footer */
    .video-modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .video-modal-header {
        display: none;
    }
    
    .video-modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    .video-embed {
        height: 100%;
        flex: 1;
    }
    
    .video-modal-info {
        display: none;
    }
    
    /* Mobile close button - floating */
    .video-modal-close-mobile {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }
    
    .video-modal-close-mobile:hover {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .video-modal-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Gallery responsive styles */
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tag-cloud {
        justify-content: center;
    }
    
    .image-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-image {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        margin: 1% auto;
        width: 98%;
    }
    
    .video-embed {
        height: 200px;
    }
    
    .gallery-section {
        padding: 80px 0 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-cloud-section {
        padding: 20px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Logo scaling */
.logo-scaled {
    transform: scale(1.1);
}

/* Active navigation states */
.nav-active {
    color: #7C3AED !important;
    font-weight: 600;
}

.nav-active-videos {
    color: #7C3AED !important;
}

/* Icon colors */
.icon-primary {
    color: #7C3AED;
}

/* Display utilities */
.hidden {
    display: none;
}

/* Animation delays */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }
.anim-delay-8 { animation-delay: 0.8s; }
.anim-delay-9 { animation-delay: 0.9s; }
.anim-delay-10 { animation-delay: 1.0s; }
.anim-delay-11 { animation-delay: 1.1s; }
.anim-delay-12 { animation-delay: 1.2s; }

/* Footer styles */
.footer-dark {
    background: #1F2937;
    color: #D1D5DB;
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.footer-small {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.footer-link {
    color: #7C3AED;
    text-decoration: none;
    margin-right: 15px;
}

.footer-separator {
    margin: 0 10px;
}

/* Icon spacing utilities */
.icon-spacing {
    margin-right: 8px;
}

.icon-purple {
    color: #7C3AED;
}

.icon-green {
    color: #10B981;
}

.icon-blue {
    color: #3B82F6;
}

/* =============================================================================
   COMPONENTS CSS - Merged from components.css
   ============================================================================= */

/* =================================
   ANNOUNCEMENT COMPONENTS
   ================================= */

.announcement-banner {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    padding: 15px 0;
    margin-top: 80px;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 220px; /* 200px margin + 20px padding on each side */
    position: relative;
    height: 24px; /* Fixed height for consistent scrolling */
}

.announcement-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%; /* Start from right side */
}

/* Scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-preview {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    padding: 15px 0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.announcement-preview p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
    width: 100%;
}

/* =================================
   PROFILE PHOTO COMPONENTS
   ================================= */

.student-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.student-card {
    flex: 1;
}

.photo-section {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 12px;
    border: 3px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-upload-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.photo-upload-btn:hover {
    background: #6D28D9;
    transform: scale(1.1);
}

/* Profile photos in table */
.table-profile-photo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.table-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

.table-profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

/* =================================
   BUTTON COMPONENTS
   ================================= */

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-color: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-color: #B91C1C;
    transform: translateY(-1px);
}

.due-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    border-color: #DC2626 !important;
    color: white !important;
}

.due-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    border-color: #B91C1C !important;
    transform: translateY(-1px);
}

.due-btn:active {
    transform: translateY(0);
}

/* =================================
   ALERT COMPONENTS
   ================================= */

.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.alert-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
}

.alert-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

/* =================================
   RESPONSIVE UTILITIES
   ================================= */

@media (max-width: 768px) {
    .announcement-banner {
        padding: 12px 0;
        white-space: normal; /* Allow text wrapping on mobile */
    }
    
    .announcement-container {
        height: auto; /* Auto height for wrapped text */
        padding: 0 20px; /* Normal padding on mobile */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .announcement-text {
        font-size: 14px;
        animation: none; /* Disable scrolling on mobile */
        white-space: normal; /* Allow text wrapping */
        padding-left: 0; /* Reset padding */
        line-height: 1.4;
        max-width: none;
    }
    
    .student-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-section {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .announcement-container {
        padding: 0 15px;
    }
    
    .announcement-text {
        font-size: 13px;
    }
    
    .photo-section {
        width: 80px;
        height: 80px;
    }
}

/* =============================================================================
   MODAL CSS - Merged from modal.css
   ============================================================================= */

/* Modal overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none; /* Hidden by default */
    padding: 20px;
    box-sizing: border-box;
}

/* Show modal with flexbox when displayed */
.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal content container */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 900px; /* Wider modal */
    width: 100%;
    max-height: 90vh;
    overflow: hidden; /* Remove scroll from container */
    display: flex;
    flex-direction: column;
}

/* Modal header */
.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.1);
    flex-shrink: 0; /* Keep header fixed size */
}

.modal-header h2,
.modal-header .modal-title {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Modal body */
.modal-body {
    padding: 30px;
    overflow-y: auto; /* Scroll only the body */
    flex: 1; /* Take remaining space */
}

/* Student Details Modal - Info Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns on desktop */
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%; /* Ensure full width */
}

.info-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem; /* Reduced from 1rem */
    transition: all 0.2s ease;
    min-height: auto; /* Removed fixed height for more compact design */
    display: flex;
    flex-direction: column;
}

.info-item:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.info-item.enrolled {
    border-left: 4px solid #10B981;
    background: #ECFDF5;
}

.info-item.not-enrolled {
    border-left: 4px solid #F59E0B;
    background: #FFFBEB;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-value {
    font-size: 1rem;
    color: #1F2937;
    font-weight: 500;
    line-height: 1.4;
}

/* Financial Summary Section */
.financial-summary {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    width: 100%; /* Full width to match 2-card span */
    box-sizing: border-box;
}

.financial-summary h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.financial-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.financial-row .credit {
    color: #10B981;
    font-weight: 600;
}

.financial-row .due {
    color: #EF4444;
    font-weight: 600;
}

/* Mobile Responsive - 1 column layout */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%; /* Adjust for mobile */
        margin: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2,
    .modal-header .modal-title {
        font-size: 1.125rem;
    }
    
    .financial-summary {
        padding: 1rem;
    }
    
    .info-item {
        min-height: auto; /* Remove fixed height on mobile */
    }
}

/* Form styling within modals */
.modal form {
    margin: 0;
}

/* Unified Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-inter);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 0 0 3px transparent;
}

/* Specifically target date inputs to override browser defaults */
.modal input[type="date"] {
    font-family: var(--font-inter) !important;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modal select {
    background: white;
    cursor: pointer;
}

.modal textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form groups */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group:last-of-type {
    margin-bottom: 30px;
}

/* Button styling */
.modal .button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal .form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal .btn-cancel {
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.modal .btn-cancel:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

/* Primary button styling */
.modal .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
    min-width: 120px;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.modal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.modal .btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Secondary button styling */
.modal .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.modal .btn-secondary:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal .btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.modal .btn-secondary:disabled {
    background: #F9FAFB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Consistent form button container styling */
.modal .form-buttons,
.modal .form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

/* Responsive button container */
@media (max-width: 480px) {
    .modal .form-buttons,
    .modal .form-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal .btn-primary,
    .modal .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Warning and error messages */
.modal .warning {
    color: #F59E0B;
    font-size: 14px;
    display: none;
}

.modal .success {
    color: #10B981;
    font-size: 14px;
}

.modal .error {
    color: #EF4444;
    font-size: 14px;
}

/* Required field indicator */
.modal label.required::after {
    content: " *";
    color: #EF4444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 2% auto;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal input,
    .modal select,
    .modal textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Notification Modal Styles */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    padding: 20px;
    box-sizing: border-box;
}

.notification-modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.notification-content {
    background: white;
    border-radius: 16px;
    padding: 40px 30px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: notificationZoomIn 0.3s ease-out;
    position: relative;
    /* Ensure this overrides admin.css positioning */
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

@keyframes notificationZoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    background: #10B981;
    color: white;
}

.notification-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
}

.notification-message {
    margin: 0 0 25px 0;
    color: #6B7280;
    line-height: 1.5;
    font-size: 14px;
}

.notification-button {
    background: #7C3AED;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.notification-button:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Form error styling */
.form-error {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-input.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-input.success {
    border-color: #10B981 !important;
    background-color: #F0FDF4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Form grid responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .notification-content {
        padding: 30px 20px 20px;
        margin: 0 10px;
    }
    
    .notification-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .notification-title {
        font-size: 1.25rem;
    }
}

/* Modal shake animation for prevented outside clicks */
@keyframes modal-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.modal-shake .modal-content {
    animation: modal-shake 0.3s ease-in-out;
}

/* =============================================================================
   BUTTON LOADING STATES
   ============================================================================= */

/* Unified Loading Button Styles */
.btn-loading {
    position: relative;
    cursor: wait !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
    animation: pulse-loading 1.5s ease-in-out infinite !important;
    border: none !important;
    color: white !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-loading:hover {
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
    cursor: wait !important;
}

.btn-loading:focus {
    outline: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

/* Ensure spinner visibility in loading buttons */
.btn-loading .spinner {
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
}

/* Pulse animation for loading buttons */
@keyframes pulse-loading {
    0% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
}

/* Disable all interactions when button is loading */
.btn-loading * {
    pointer-events: none !important;
}

/* Loading state for different button types */
button.btn-loading,
.btn-primary.btn-loading,
.btn-secondary.btn-loading,
input[type="submit"].btn-loading {
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
    color: white !important;
    cursor: wait !important;
    opacity: 0.8 !important;
}

/* =============================================================================
   ENROLLMENT FORM STYLES
   ============================================================================= */

/* Enrollment Form Grid Layout */
.enrollment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 20px;
}

.enrollment-grid .form-group {
    margin-bottom: 0;
}

.enrollment-grid .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.enrollment-grid .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-inter);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.enrollment-grid .form-input:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.enrollment-grid .form-error {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.enrollment-grid .form-error.show {
    display: block;
}

.enrollment-grid .form-input.error,
#enrollmentModal .form-input.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.enrollment-grid .form-input.success,
#enrollmentModal .form-input.success {
    border-color: #10B981 !important;
    background-color: #F0FDF4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Select dropdown styling for enrollment form */
.enrollment-grid select.form-input {
    background: white;
    cursor: pointer;
    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 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 32px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Required field indicator for enrollment form */
.enrollment-grid .form-label:has(+ input[required])::after,
.enrollment-grid .form-label:has(+ select[required])::after,
.enrollment-grid .form-label[for="studentName"]::after,
.enrollment-grid .form-label[for="dateOfBirth"]::after,
.enrollment-grid .form-label[for="studentSex"]::after,
.enrollment-grid .form-label[for="contactNumber"]::after,
.enrollment-grid .form-label[for="primaryEmail"]::after,
.enrollment-grid .form-label[for="address"]::after,
.enrollment-grid .form-label[for="cityZip"]::after,
.enrollment-grid .form-label[for="emergencyPerson"]::after,
.enrollment-grid .form-label[for="emergencyContact"]::after {
    content: " *";
    color: #EF4444;
}

/* Dynamic asterisk for parent name - only when required */
.enrollment-grid .form-label[for="parentName"]:has(+ input[required])::after {
    content: " *";
    color: #EF4444;
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .enrollment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* =============================================================================
   EVENT MODAL SPECIFIC STYLES
   ============================================================================= */

.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.event-modal.show {
    display: flex;
}

.event-modal .modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
    margin: 0;
}

.event-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.event-modal .modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
}

.event-modal .modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.event-modal .modal-close:hover {
    color: #374151;
}

.event-modal #modalBody {
    padding: 30px;
}

.modal-event-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.modal-event-date {
    color: #7C3AED;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-event-location {
    color: #6B7280;
    margin-bottom: 16px;
    font-style: italic;
}

.modal-event-description {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-event-type {
    display: inline-block;
    background: #F3E8FF;
    color: #7C3AED;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile responsiveness for event modal */
@media (max-width: 768px) {
    .event-modal {
        padding: 10px;
    }
    
    .event-modal .modal-content {
        margin: 20px auto;
        max-height: 95vh;
    }
    
    .event-modal .modal-header {
        padding: 20px 20px 15px;
    }
    
    .event-modal .modal-title {
        font-size: 20px;
    }
    
    .event-modal #modalBody {
        padding: 20px;
    }
}
