/* Enhanced Base CSS for SQL Playground */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Enhanced background with subtle patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* Responsive Breakpoints */
:root {
    --breakpoint-xs: 480px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Enhanced Adaptive Tile Wrap System */
.tile-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adaptive container sizes with smooth transitions */
.tile-wrap-xs {
    max-width: 480px;
}

.tile-wrap-sm {
    max-width: 640px;
}

.tile-wrap-md {
    max-width: 768px;
}

.tile-wrap-lg {
    max-width: 1024px;
}

.tile-wrap-xl {
    max-width: 1280px;
}

.tile-wrap-2xl {
    max-width: 1536px;
}

.tile-wrap-full {
    max-width: none;
}

/* Adaptive padding based on content type */
.tile-wrap-compact {
    padding: 0 0.75rem;
}

.tile-wrap-spacious {
    padding: 0 2rem;
}

/* Content-aware adaptive containers */
.tile-wrap-form {
    max-width: 600px;
    padding: 0 1.5rem;
}

.tile-wrap-dashboard {
    max-width: 1600px;
    padding: 0 1.25rem;
}

.tile-wrap-content {
    max-width: 900px;
    padding: 0 1.5rem;
}

/* Fluid container that adapts to viewport */
.tile-wrap-fluid {
    max-width: 95vw;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

/* Enhanced Responsive Padding for Tile Wrap System */
@media (min-width: 480px) {
    .tile-wrap {
        padding: 0 1.5rem;
    }

    .tile-wrap-compact {
        padding: 0 1rem;
    }

    .tile-wrap-spacious {
        padding: 0 2.5rem;
    }
}

@media (min-width: 768px) {
    .tile-wrap {
        padding: 0 2rem;
    }

    .tile-wrap-compact {
        padding: 0 1.25rem;
    }

    .tile-wrap-spacious {
        padding: 0 3rem;
    }

    .tile-wrap-form {
        padding: 0 2rem;
    }

    .tile-wrap-dashboard {
        padding: 0 1.75rem;
    }

    .tile-wrap-content {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .tile-wrap {
        padding: 0 2.5rem;
    }

    .tile-wrap-compact {
        padding: 0 1.5rem;
    }

    .tile-wrap-spacious {
        padding: 0 3.5rem;
    }

    .tile-wrap-form {
        padding: 0 2.5rem;
    }

    .tile-wrap-dashboard {
        padding: 0 2.25rem;
    }

    .tile-wrap-content {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1280px) {
    .tile-wrap {
        padding: 0 3rem;
    }

    .tile-wrap-compact {
        padding: 0 2rem;
    }

    .tile-wrap-spacious {
        padding: 0 4rem;
    }

    .tile-wrap-form {
        padding: 0 3rem;
    }

    .tile-wrap-dashboard {
        padding: 0 2.75rem;
    }

    .tile-wrap-content {
        padding: 0 3rem;
    }
}

@media (min-width: 1536px) {
    .tile-wrap {
        padding: 0 3.5rem;
    }

    .tile-wrap-compact {
        padding: 0 2.5rem;
    }

    .tile-wrap-spacious {
        padding: 0 5rem;
    }

    .tile-wrap-form {
        padding: 0 3.5rem;
    }

    .tile-wrap-dashboard {
        padding: 0 3.25rem;
    }

    .tile-wrap-content {
        padding: 0 3.5rem;
    }
}




/* Enhanced Layout */
.main-content {
    min-height: calc(100vh - 120px);
    /*padding-top: 90px;*/
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Add subtle animations to main content */
.main-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-link .material-icons {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.nav-link.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Admin Navigation Styles */
.nav-dropdown-btn.admin-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-weight: 600;
}

.nav-dropdown-btn.admin-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    color: white;
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-dropdown-content a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Dark theme admin dropdown styling */
[data-theme="dark"] .nav-dropdown-content,
.dark-theme .nav-dropdown-content {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-dropdown-content a,
.dark-theme .nav-dropdown-content a {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .nav-dropdown-content a:hover,
.dark-theme .nav-dropdown-content a:hover {
    background-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .nav-dropdown-content a:last-child,
.dark-theme .nav-dropdown-content a:last-child {
    border-bottom: none;
}

/* Dropdown divider styling */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

[data-theme="dark"] .dropdown-divider,
.dark-theme .dropdown-divider {
    background-color: #334155;
}

/* Admin dropdown button dark theme */
[data-theme="dark"] .nav-dropdown-btn.admin-btn,
.dark-theme .nav-dropdown-btn.admin-btn {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .nav-dropdown-btn.admin-btn:hover,
.dark-theme .nav-dropdown-btn.admin-btn:hover {
    background: linear-gradient(135deg, #334155, #475569);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.nav-dropdown-content a .material-icons {
    font-size: 18px;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Enhanced Messages */
.messages {
    position: fixed;
    top: 100px;
    right: 1.5rem;
    z-index: 1001;
    max-width: 420px;
}

.message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 16px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.8;
}

.message-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-left: 4px solid var(--success-color);
}

.message-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-left: 4px solid var(--error-color);
}

.message-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-left: 4px solid var(--warning-color);
}

.message-info {
    background-color: var(--info-bg);
    color: var(--info-text);
    border-left: 4px solid var(--info-color);
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    border-top: none;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #3b82f6 20%,
        #8b5cf6 40%,
        #06b6d4 60%,
        #10b981 80%,
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 300px;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-logo .material-icons {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    animation: glow 2s ease-in-out infinite alternate;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6)); }
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.social-link:nth-child(1):hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.social-link:nth-child(2):hover {
    background: linear-gradient(135deg, #333, #24292e);
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.4);
}

.social-link:nth-child(3):hover {
    background: linear-gradient(135deg, #0077b5, #005885);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-link:nth-child(4):hover {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.social-link .material-icons {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.social-link:hover .material-icons {
    transform: scale(1.1);
}

/* Footer Sections */
.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
    position: relative;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -100%;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: left 0.3s ease;
}

.footer-links a:hover::before {
    left: 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.footer-links a::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #3b82f6;
    font-weight: bold;
}

.footer-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter Section */
.footer-newsletter {
    max-width: 320px;
    position: relative;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input-group {
    display: flex;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.newsletter-input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.newsletter-input-group:focus-within::before {
    opacity: 1;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
}

.newsletter-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.newsletter-btn {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.newsletter-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 ease;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.newsletter-btn .material-icons {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover .material-icons {
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 2;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Additional Visual Effects */
.footer-section {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

.footer-section:not(.footer-brand):not(.footer-newsletter)::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-section:not(.footer-brand):not(.footer-newsletter):hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
        gap: 2.5rem;
    }
}

@media (max-width: 968px) {
    .footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a::after {
        display: none;
    }

    .footer-links a:hover {
        transform: translateX(0);
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 8px;
    }

    .newsletter-btn {
        border-radius: 0 0 8px 8px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Enhanced Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add floating animation for interactive elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Smooth scale animation */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}


/* 2xl */
@media (max-width: 1536px) {}

/* xl */
@media (max-width: 1280px) {}

/* lg */
@media (max-width: 1024px) {}

/* md */
@media (max-width: 768px) {}

/* sm */
@media (max-width: 640px) {}

/* xs */
@media (max-width: 475px) {
    .header {
        padding: 1rem 0.75rem;
    }

    .nav-items {
        gap: 1rem;
        padding: 0.25rem 1rem;
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .messages {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    .message {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Modern Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--accent-color)) border-box;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Focus styles for accessibility - Remove outline boxes */
*:focus {
    outline: none;
}

/* Better focus indicators for specific elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Remove focus indicators for mouse users but keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Selection styles */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}