/* Color scheme - purple, lavender, pink, maroon, light blues and light greens */
:root {
    /* Purple and Lavender */
    --purple-dark: #6b21a8;
    --purple: #9333ea;
    --purple-light: #a855f7;
    --lavender: #c084fc;
    --lavender-light: #e9d5ff;
    
    /* Pink and Maroon */
    --pink: #ec4899;
    --pink-light: #f472b6;
    --pink-pastel: #fbcfe8;
    --maroon: #800020;
    --maroon-light: #a52a2a;
    
    /* Light Blues */
    --blue-light: #bfdbfe;
    --blue-sky: #93c5fd;
    --blue-pastel: #dbeafe;
    
    /* Light Greens */
    --green-light: #86efac;
    --green-mint: #a7f3d0;
    --green-pastel: #d1fae5;
    
    /* Background */
    --bg-black: #000000;
    --bg-dark: #1a0a2e;
    --bg-purple-dark: #2d1b4e;
    
    /* Text */
    --text-light: #ffffff;
    --text-gray: #d1d5db;
    --text-purple-light: #e9d5ff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-purple-dark) 50%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--bg-purple-dark) 0%, var(--bg-dark) 50%, var(--bg-black) 100%);
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--purple-light);
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.5), 0 0 20px rgba(236, 72, 153, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 1;
}

.animated-logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.8)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--lavender-light);
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-light), var(--pink-light));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.nav-link:hover::after {
    width: 80%;
}

.github-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 2rem;
    background: rgba(26, 10, 46, 0.3);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--lavender) 30%, var(--purple-light) 60%, var(--blue-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.6)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.4));
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Docs Container */
.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.docs-content h1 {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

#redoc-container {
    min-height: 600px;
}

/* Swagger Container */
.swagger-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-purple-dark) 100%);
    padding: 2rem;
    border-top: 3px solid var(--purple-light);
    margin-top: auto;
    box-shadow: 0 -4px 30px rgba(147, 51, 234, 0.4);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.powered-by {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.powered-by-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.8)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
    transition: all 0.3s ease;
}

.powered-by-logo:hover {
    filter: drop-shadow(0 0 30px rgba(192, 132, 252, 1)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
    transform: scale(1.05);
}

.footer-info {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-info p {
    margin: 0.25rem 0;
}

.last-updated {
    color: var(--text-light);
}

.version {
    color: var(--green-light);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(134, 239, 172, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

/* Swagger UI Theme Override */
.swagger-ui .topbar {
    background-color: var(--bg-dark);
    border-bottom: 2px solid var(--purple-outline);
}

.swagger-ui .info .title {
    color: var(--text-light);
}

/* Redoc Theme Override */
.redoc-wrap {
    background: var(--bg-black);
}

