/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal overflow on specific elements that commonly cause issues */
img, video, iframe, table, pre, code {
    max-width: 100%;
    height: auto;
}

/* Ensure text content wraps properly */
p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --secondary: #6C63FF;
    --accent: #FF6B6B;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --success: #2ECC71;
    --warning: #F1C40F;
    --error: #E74C3C;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 88px;
    padding-bottom: 60px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--primary);
    text-decoration: none;
    gap: -0.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo i {
    font-size: 1.75rem;
}

.logo-img {
    height: 80px;
    margin-right: 0;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text);
        text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    }

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

.nav-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* Header hamburger menu */
.main-header .hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    padding: 15px;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
}

.main-header .hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Trial Banner */
.trial-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.trial-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.trial-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.trial-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trial-text p {
    font-size: 1.1rem;
    margin: var(--spacing-sm) 0 0 0;
    opacity: 0.95;
    font-weight: 500;
}

.trial-cta .btn-trial {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.trial-cta .btn-trial:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}


/* Responsive Trial Banner */
@media (max-width: 768px) {
    .trial-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .trial-text h2 {
        font-size: 1.5rem;
    }
    
    .trial-text p {
        font-size: 1rem;
    }
    
}

/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(108, 99, 255, 0.1)), url('../images/image2.jpg') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(44,62,80,0.3) 0%, rgba(44,62,80,0.85) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    text-align: center;
}

.hero-content, .hero-content h1, .hero-content p, .hero-content .feature span {
    color: #fff;
}

.hero-content h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.hero-features {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feature i {
    color: var(--primary);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Video Section */
.video-section {
    padding: var(--spacing-xxl) 0;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.video-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.instruction-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.video-overlay i {
    font-size: 1.5rem;
}

.video-container:hover .video-overlay {
    background: rgba(74, 144, 226, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay:active {
    background: rgba(74, 144, 226, 0.9);
    transform: translate(-50%, -50%) scale(0.95);
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .video-overlay:active {
        background: rgba(74, 144, 226, 0.9);
        transform: translate(-50%, -50%) scale(0.95);
    }
}


.music-notes {
    position: relative;
    width: 300px;
    height: 300px;
}

.music-notes i {
    position: absolute;
    color: var(--primary);
    opacity: 0.2;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.music-notes i:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.music-notes i:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.music-notes i:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
}
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-list i {
    color: var(--success);
}

/* How it Works Section */
.how-it-works {
    padding: var(--spacing-xxl) 0;
    background: var(--background);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.step {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--spacing-sm);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: var(--spacing-xxl) 0;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: var(--spacing-md) 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.pricing-features i {
    color: var(--success);
}

/* Footer */
footer {
    background: var(--white);
    color: var(--text);
    padding: 0.5rem 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    }

.cookie-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
    

    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
        }
        footer {
            background: var(--white);
            color: var(--text);
            padding: 0.5rem 0;
            width: 100%;
            position: fixed;
            bottom: 0;
            left: 0;
            z-index: 1000;
            border-top: 1px solid #e0e0e0;
        }
        .logo {
            height: 60px;
        }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--spacing-xs);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .video-container {
        max-width: 100%;
        width: 100%;
    }

    .video-overlay {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .video-overlay i {
        font-size: 1.2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }

    .main-header .hamburger-menu {
        display: block;
    }
    
    .main-header .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        z-index: 99999;
        box-shadow: var(--shadow-md);
    }
    
    .main-header .nav-links.active {
        display: flex;
    }

    footer {
        padding: 0.5rem 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .footer-col {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .footer-col p {
        font-size: 0.9rem;
        margin: 0;
        padding: 0 0.5rem;
    }

    .social-links {
        margin-top: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links a {
        font-size: 1.2rem;
    }
}

/* Accessibility */
:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
        }

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1001;
    transition: top var(--transition-fast);
}

.skip-to-main:focus {
    top: 0;
}

/* Print styles */
@media print {
    .navbar,
    .hero-cta,
    .cookie-consent {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    /* Message link styles - ensure they are always properly formatted */
    .message a,
    .left-text a,
    .message-link {
        color: #0066cc !important;
        text-decoration: underline !important;
        cursor: pointer !important;
        transition: color 0.2s ease;
    }
    
    .message a:hover,
    .left-text a:hover,
    .message-link:hover {
        color: #004499 !important;
        text-decoration: underline !important;
    }
    
    .message a:active,
    .left-text a:active,
    .message-link:active {
        color: #002266 !important;
    }
    
    /* News content link styles - more specific to avoid affecting other page elements */
    .news-item .news-content a {
        color: #0066cc !important;
        text-decoration: underline !important;
        cursor: pointer !important;
        transition: color 0.2s ease;
    }
    
    .news-item .news-content a:hover {
        color: #004499 !important;
        text-decoration: underline !important;
    }
    
    .news-item .news-content a:active {
        color: #002266 !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
}
}

.hero .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.hero .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    }
.hero .btn-outline {
    border-color: #fff;
    color: #fff;
}
.hero .btn-outline:hover {
    background: #fff;
    color: #222;
}

.capital {
    font-size: 1.6em;
}

/* Login Form Styles */
#singer-options,
#admin-options {
    transition: opacity 0.3s ease;
}

#singer-options[style*="display: block"],
#admin-options[style*="display: block"] {
    display: block !important;
    opacity: 1;
}

.form-group {
    margin-bottom: 1.2rem;
}

.input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light, #4A90E2);
    outline: none;
    transform: translateY(-1px);
}

/* Dashboard styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Ensure dashboard container doesn't exceed viewport width on any device */
@media (max-width: 1200px) {
    .dashboard-container {
        max-width: 100vw;
        width: 100vw;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.welcome-section {
    background: white;
    color: #2C3E50;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(24,49,83,0.18);
    border-top: 6px solid var(--primary);
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    color: #2C3E50;
    -webkit-text-fill-color: #2C3E50;
}

.welcome-section h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-weight: 600;
    color: #2C3E50;
    -webkit-text-fill-color: #2C3E50;
}

.welcome-section p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
    font-weight: 500;
    color: #2C3E50;
    -webkit-text-fill-color: #2C3E50;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.practice-section, .messages-section, .admin-section, .chat-section, .news-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(24,49,83,0.18);
    border-top: 6px solid var(--primary);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.practice-section h2, .messages-section h2, .admin-section h2, .chat-section h2, .news-section h2 {
    color: #2C3E50;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.admin-link {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.6rem
}

.admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-tables {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.table-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(24,49,83,0.18);
    border-top: 6px solid var(--primary);
}

.table-container h3 {
    color: #2C3E50;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: fixed;
    word-wrap: break-word;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2C3E50;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* Stats filters */
.stats-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.stats-filters label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.stats-filters select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    min-width: 200px;
}

.stats-filters button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stats-filters button:hover {
    background: var(--primary-dark, #0056b3);
    transform: translateY(-1px);
}

/* Stats Header */
.stats-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.stats-header h3 {
    color: #2C3E50;
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.stats-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stats-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #3498db 100%);
}

.stats-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.stats-section h4 {
    color: #2C3E50;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.stats-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.stats-content {
    min-height: 120px;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error {
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    padding: 2rem 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
    background: rgba(102, 102, 102, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(102, 102, 102, 0.2);
}

/* Stat List */
.stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-label {
    flex: 1;
    font-size: 0.95rem;
    color: #2C3E50;
    font-weight: 600;
    min-width: 100px;
    line-height: 1.3;
}

.stat-bar {
    flex: 2;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #3498db 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-count {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.news-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(24,49,83,0.18);
    border-top: 6px solid var(--primary);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-item h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.news-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-content {
    color: #2C3E50;
    line-height: 1.6;
    font-size: 1.1rem;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Message content styles */
.message, .left-text {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Privacy Policy styles */
.privacy-container {
    max-width: 800px;
    margin: 100px auto 50px;
    text-align: left;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.privacy-container h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.privacy-container h2 {
    font-size: 2.5rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.privacy-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.privacy-container ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.privacy-container li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text);
    padding-left: 1.5rem;
    position: relative;
}

.privacy-container li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.privacy-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.privacy-container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive styles for dashboard and privacy policy */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.5rem;
        margin-top: 80px;
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .welcome-section {
        padding: 1.5rem;
        margin: 0 0.25rem 1.5rem 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .welcome-section h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .admin-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .admin-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .practice-section, .messages-section, .admin-section, .chat-section, .news-section, .table-container, .news-item {
        padding: 1.5rem;
        margin: 0 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Mobile stats filters */
    .stats-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .stats-filters select {
        min-width: auto;
        width: 100%;
    }

    .stats-filters button {
        margin-left: 0;
        width: 100%;
    }

    /* Mobile stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .stats-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .stats-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .stat-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
        padding: 0.5rem;
    }

    .stat-label {
        min-width: auto;
        text-align: center;
        font-size: 0.9rem;
    }

    .stat-bar {
        flex: none;
        width: 100%;
        height: 10px;
        border-radius: 5px;
    }

    .stat-count {
        min-width: auto;
        text-align: center;
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }

    .loading::before {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    .stats-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stats-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .stats-subtitle {
        font-size: 1rem;
    }

    /* Ensure admin section grid doesn't overflow on mobile */
    .admin-section[style*="grid-column: 1 / -1"] {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Force admin section to full width on mobile */
    .admin-section {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Ensure admin section content doesn't overflow */
    .admin-section > * {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Specific mobile styles for superadmin tables */
    .admin-tables {
        display: block;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .table-container {
        margin-bottom: 1rem;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .admin-table {
        width: 100%;
        min-width: 300px;
        font-size: 0.9rem;
        max-width: 100%;
        table-layout: fixed;
    }

    .admin-table th, 
    .admin-table td {
        padding: 0.75rem 0.5rem;
        word-wrap: break-word;
        max-width: 120px;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .admin-table th:first-child,
    .admin-table td:first-child {
        min-width: 80px;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        min-width: 120px;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        min-width: 100px;
    }

    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        min-width: 120px;
    }

    .privacy-container {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    .privacy-container h1 {
        font-size: 2.5rem;
    }

    .privacy-container h2 {
        font-size: 2rem;
    }
    
    /* Ensure message links are properly styled and clickable on mobile */
    .message a,
    .left-text a,
    .message-link {
        color: #0066cc !important;
        text-decoration: underline !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.3);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        display: inline-block;
        padding: 2px 4px;
        margin: 2px 0;
    }
    
    .message a:hover,
    .left-text a:hover,
    .message-link:hover {
        color: #004499 !important;
        text-decoration: underline !important;
    }
    
    .message a:active,
    .left-text a:active,
    .message-link:active {
        color: #002266 !important;
        background-color: rgba(0, 102, 204, 0.1);
    }
    
    /* News content links on mobile - more specific */
    .news-item .news-content a {
        color: #0066cc !important;
        text-decoration: underline !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.3);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        display: inline-block;
        padding: 2px 4px;
        margin: 2px 0;
    }
    
    .news-item .news-content a:hover {
        color: #004499 !important;
        text-decoration: underline !important;
    }
    
    .news-item .news-content a:active {
        color: #002266 !important;
        background-color: rgba(0, 102, 204, 0.1);
    }
}

/* Additional mobile styles for very small screens (Android phones) */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 0.25rem;
        margin-top: 70px;
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .welcome-section {
        padding: 1rem;
        margin: 0 0.125rem 1rem 0.125rem;
        width: calc(100% - 0.25rem);
        max-width: calc(100vw - 0.5rem);
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .main-content {
        margin: 0 0.125rem;
        width: calc(100% - 0.25rem);
        max-width: calc(100vw - 0.5rem);
        gap: 0.75rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .practice-section, .messages-section, .admin-section, .chat-section, .news-section, .table-container, .news-item {
        padding: 1rem;
        margin: 0 0.125rem;
        width: calc(100% - 0.25rem);
        max-width: calc(100vw - 0.5rem);
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .admin-table {
        font-size: 0.8rem;
        min-width: 250px;
    }

    .admin-table th, 
    .admin-table td {
        padding: 0.5rem 0.25rem;
        max-width: 100px;
    }

    .admin-table th:first-child,
    .admin-table td:first-child {
        min-width: 60px;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        min-width: 100px;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        min-width: 80px;
    }

    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        min-width: 100px;
    }

    .admin-links {
        gap: 0.5rem;
    }

    .admin-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
}

.modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    max-height: 80vh;
    overflow: hidden;
    min-height: 200px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
}

.modal-content.register-modal-content {
    margin-top: 0;
    max-width: 800px;
    overflow-y: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 60px; /* Ensure minimum height for header */
    background: var(--white);
    border-radius: 8px 8px 0 0;
    flex-shrink: 0; /* Prevent header from shrinking */
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--text);
}

.modal-body {
    padding: 30px 25px;
    margin: 20px;
    min-height: 100px; /* Ensure minimum height for body */
    overflow-y: auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Take remaining space */
}

/* Signature styles */
.signature {
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    font-style: italic;
}

.signature-name {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1.9rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.signature-title {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Mobile styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
        max-height: 95vh;
    }

    .modal-content.register-modal-content {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
    }

    .modal-content .modal-body {
        padding: 20px 15px;
        margin: 15px;
        overflow-y: auto;
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex: 1;
    }
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light, #4A90E2);
    outline: none;
    transform: translateY(-1px);
}

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

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form .checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form .checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* reCAPTCHA styles */
.g-recaptcha {
    margin: 15px 0;
    display: block;
    width: 100%;
    height: 70px;
    position: relative;
    z-index: 1001;
}

/* Säkerställ att reCAPTCHA är synlig i modal */
.modal .g-recaptcha {
    position: relative;
    z-index: 1001;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

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

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* iPad Pro specific styles */
@media only screen 
and (min-device-width: 1024px) 
and (max-device-width: 1366px) 
and (-webkit-min-device-pixel-ratio: 2) {
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    body {
        padding-bottom: 60px;
    }
}

/* Subadmin Modal Styles */
body #subadminModalupload.subadmin-modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
}

body #subadminModalupload.subadmin-modal-container.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
}

body .subadmin-content2 {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
    color: #2C3E50;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Add a wrapper to ensure proper centering */
.subadmin-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Add Subadmin Modal Styles */
body #addSubadminModalupload.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
}

body #addSubadminModalupload.modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
}

body .subadmin-content3 {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
    color: #2C3E50;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Add a wrapper for the add subadmin modal */
.add-subadmin-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Stripe Elements styling */
#card-number-element,
#card-expiry-element,
#card-cvc-element {
    background-color: #f8f9fa;
    color: #2C3E50;
    font-family: var(--font-family);
    font-size: 16px;
    width: 100%;
}

#card-number-element.StripeElement--focus,
#card-expiry-element.StripeElement--focus,
#card-cvc-element.StripeElement--focus {
    color: #2C3E50;
}

#card-number-element.StripeElement--invalid,
#card-expiry-element.StripeElement--invalid,
#card-cvc-element.StripeElement--invalid {
    color: #fa755a;
}

/* Debug font styles */
.debug-font {
    font-family: var(--font-family);
    font-weight: 700;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
}

/* LOGIN badge styles - only visible on mobile */
.auth-buttons #openLoginModal .login-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Show LOGIN badge only on mobile */
@media (max-width: 768px) {
    .auth-buttons #openLoginModal .login-badge {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4444;
        color: white;
        font-size: 0.5rem;
        font-weight: bold;
        padding: 1px 3px;
        border-radius: 6px;
        animation: badge-bounce 1.5s infinite;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1;
        min-width: 20px;
        text-align: center;
    }
}

/* Badge bounce animation */
@keyframes badge-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}
