:root {
    --color-primary: #D4AF37; /* Gold */
    --color-primary-dark: #B5952F;
    --color-bg-dark: #121212; /* Black */
    --color-bg-card: #1E1E1E; /* Dark Gray */
    --color-text: #FFFFFF;
    --color-text-muted: #A0A0A0;
    --color-border: #333333;
    --color-danger: #E74C3C;
    --color-success: #2ECC71;
    --font-family: 'Inter', 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2A2A2A;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--color-bg-card);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 24px;
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: all 0.3s;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-primary);
    border-right: 3px solid var(--color-primary);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 70px;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
}

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

/* Auth Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1E1E1E 0%, #121212 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    .sidebar-menu li a {
        padding: 10px;
        white-space: nowrap;
        border-right: none;
        border-bottom: 3px solid transparent;
    }
    .sidebar-menu li a:hover, .sidebar-menu li a.active {
        border-right: none;
        border-bottom: 3px solid var(--color-primary);
    }
}
