:root {
    --bg-color: #0a0c12;
    --glass-bg: #0d1117;
    --glass-border: rgba(255, 255, 255, 0.06);
    --primary: #1a1f2e;
    --primary-hover: #1f2537;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.3);
    --accent: #00c8d4;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    height: 100vh;
}

/* Centered Layout for Login */
body:not(.dashboard-body) {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-anim {
    display: none; /* Removed for Nexus Theme */
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeUp {
    to { transform: translateY(0); opacity: 1; }
}

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    margin-bottom: 0;
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.discord-btn,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.discord-btn:hover,
.submit-btn:hover {
    background-color: var(--primary-hover);
    border-color: rgba(0, 200, 212, 0.3);
}

.discord-btn svg {
    fill: currentColor;
}

.sm-btn {
    background: var(--primary);
    border: 1px solid var(--glass-border);
    color: rgba(239, 68, 68, 0.8);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sm-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Forms */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group.row {
    display: flex;
    gap: 16px;
}

.col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    background: var(--primary);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

select option {
    background: var(--bg-color);
}

.feedback {
    margin-top: 16px;
    text-align: center;
    min-height: 24px;
}

.success {
    color: #34d399;
    font-weight: 500;
}

.error {
    color: #ef4444;
    font-weight: 500;
}

/* Dashboard Layout */
.dashboard-body {
    display: block;
    overflow: hidden;
}

.dashboard-layout {
    display: flex;
    height: 100vh;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.sidebar {
    width: 250px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    border-radius: 0;
}

.sidebar .brand {
    padding: 24px 24px 24px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.brand h2 {
    color: var(--accent) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 900;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand p {
    font-size: 0.55rem !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted) !important;
    font-weight: 900;
    margin: 0 !important;
}

.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 12px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.nav-btn:hover {
    background: rgba(26, 31, 46, 0.5);
    color: rgba(255, 255, 255, 0.7);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-color);
}

.view-section {
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    background: var(--primary) !important;
}

.user-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
    background: var(--primary);
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}