/* Reset and Base Styles */
:root {
    /* Blue Dark Theme (Default) */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --discord: #5865f2;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
}

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

body {
    /* background-color: var(--background); */
    /* color: var(--text-primary); */
    min-height: 100vh;
    /* transition: background-color 0.5s ease, color 0.5s ease; */
    overflow-x: hidden;
}

body.light-theme {
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-light: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Theme Transition Overlay */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body.theme-changing .theme-transition-overlay {
    opacity: 0.3;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
    height: var(--header-height);
    margin-bottom: 3%;

    /* font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

body.light-theme .main-header {
    background: rgba(248, 250, 252, 0.95);
}

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

/* Logo and Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-animation {
    position: relative;
    width: 50px;
    height: 50px;
}

.logo-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    z-index: 2;
    position: relative;
    animation: logoPulse 3s infinite ease-in-out;
}

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

.logo-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: ringExpand 3s infinite linear;
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 1s;
}

.ring-3 {
    animation-delay: 2s;
}

@keyframes ringExpand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    transition: all var(--transition-speed) ease;
}
.brand-title a{
    text-decoration: inherit;
    color: inherit;
    font: inherit;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 10px 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
}

.theme-toggle:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    color: var(--primary);
    font-size: 1.1rem;
}

.theme-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 100;
}

.theme-selector:hover .theme-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.theme-option:hover {
    background: var(--surface-light);
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
}

.blue-theme {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.purple-theme {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.green-theme {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.light-blue-theme {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
}

.light-purple-theme {
    background: linear-gradient(135deg, #c4b5fd, #d8b4fe);
}

/* Discord Auth */
.discord-auth {
    display: flex;
    align-items: center;
}

.discord-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--discord);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

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

.discord-login-btn i {
    font-size: 1.2rem;
}

/* Discord User Profile */
.discord-user {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 8px 15px 8px 8px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.logout-link:hover {
    color: var(--error);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: var(--surface-light);
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    min-height: calc(100vh - var(--header-height) - 100px);
}

.container {
    width: 100%;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Toggle Switch Container */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-switch {
    display: flex;
    background: var(--surface-light);
    border-radius: 50px;
    padding: 5px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.toggle-label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toggle-switch input[type="radio"]:checked + .toggle-label {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#advanced-toggle:checked ~ .toggle-slider {
    transform: translateX(100%);
}

/* Mode Content */
.mode-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mode-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Form Container */
.form-container {
    background: var(--surface-light);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form Elements (keep existing styles but update colors) */
.interactive-dropdown {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

.interactive-dropdown:hover {
    background: var(--surface-light);
}

.input-group input,
.input-group select {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Advanced Mode Features */
.advanced-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature {
    text-align: center;
    padding: 25px;
    background: var(--surface-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .container {
        padding: 30px;
    }
    
    .welcome-message h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .theme-text {
        display: none;
    }
    
    .theme-toggle {
        padding: 10px;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .discord-login-btn span {
        display: none;
    }
    
    .discord-login-btn {
        padding: 12px;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    .welcome-message {
        padding: 20px;
    }
    
    .welcome-message h2 {
        font-size: 1.8rem;
    }
    
    .toggle-label {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .advanced-features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.3rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .toggle-label {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .toggle-label i {
        margin-right: 5px;
    }
}