@font-face {
    font-family: 'FONT2';
    src: url('/data/fonts/AlteHaasGroteskRegular.ttf');
}

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
}


body.light-theme {
    --dark-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --text-primary: #1a202c;
    --text-secondary: rgba(26, 32, 44, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.red-theme {
    --dark-gradient: linear-gradient(135deg, #410000, #580000);
    --primary-gradient: linear-gradient(135deg, #dc2626, #b91c1c);
    --accent-blue: #ef4444;
    --accent-purple: #dc2626;
    --text-primary: #ff8f8f;
    --glass-bg: rgba(114, 1, 1, 0.1);
    --glass-border: rgba(114, 1, 1, 0.2);
}


body {
    font-family: 'Inter', 'FONT2', sans-serif;
    background: var(--dark-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: all 0.4s ease-in-out;
    letter-spacing: 1px;
}

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.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

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


.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
    animation: fadeInUp 0.8s ease-out;
}

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

.logo {
    font-size: 24px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--text-primary);
    animation: glow 2s infinite;
}

.nav-item img {
    width: 20px;
    height: 20px;
    filter: invert(100%);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.nav-item:hover img {
    transform: scale(1.1);
}

body.light-theme .nav-item img {
    filter: invert(0%);
}


.settings-wrapper {
    min-height: 100vh;
    padding-top: 80px;
}

.settings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}


.settings-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.settings-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 4px;
    animation: float 3s ease-in-out infinite;
}

.title-sett {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-ings {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.settings-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}


#cont {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    overflow: hidden;
    min-height: 70vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}


.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar button {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar button.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.sidebar button.save-btn {
    margin-top: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.sidebar button.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}


.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.option-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.option-section.active {
    display: block;
}

.section-header {
    margin-bottom: 40px;
}

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

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}


.setting-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.setting-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.setting-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}


.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(24px);
}


textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    padding: 20px;
    resize: vertical;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

textarea::placeholder {
    color: var(--text-secondary);
}


.custom-dropdown {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.dropdown-header {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-arrow {
    margin-left: 10px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-list li {
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-list li:hover {
    background: var(--primary-gradient);
    color: white;
}


.action-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}


.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865f2;
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    color: white;
}

.discord-btn img {
    width: 20px;
    height: 20px;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}


@media (max-width: 1024px) {
    #cont {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .sidebar button {
        min-width: 140px;
        flex-shrink: 0;
    }
    
    .content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-item img {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .settings-container {
        padding: 20px;
    }
    
    .settings-hero {
        margin-bottom: 40px;
    }
    
    .content {
        padding: 20px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start
    }
}