@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Oswald:wght@400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --panel-bg: rgba(15, 15, 18, 0.75);
    --panel-border: rgba(255, 170, 0, 0.2);
    --primary: #ffaa00;
    --primary-glow: rgba(255, 170, 0, 0.6);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --danger: #ff3333;
    --success: #00c964;
    --gold: #ffaa00;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(to right, rgba(10, 10, 12, 0.95), rgba(10, 10, 12, 0.6)), url('img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--panel-border);
    text-align: center;
}

.sidebar-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--text-main);
    letter-spacing: 2px;
}
.sidebar-header h1 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

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

.sidebar-menu li {
    padding: 10px 30px;
}

.sidebar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.sidebar-menu a i {
    width: 30px;
    font-size: 1.3rem;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
}

.logout-btn {
    display: inline-block;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topbar-left {
    font-weight: 600;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* DASHBOARD GRID */
.dashboard-container {
    padding: 40px;
    flex: 1;
    overflow-y: auto;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.stat-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-info p {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1;
}

/* CHARACTER DETAILS */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.details-card {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.details-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
}

.char-info-list {
    list-style: none;
}

.char-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--panel-border);
}

.char-info-list li:last-child {
    border-bottom: none;
}

.char-info-list .label {
    color: var(--text-muted);
    font-weight: 600;
}

.char-info-list .value {
    font-weight: 700;
}

/* VEHICLES */
.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vehicle-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--panel-border);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.veh-name {
    font-weight: bold;
    color: var(--text-main);
}
.veh-plate {
    background: #ffaa00;
    color: black;
    font-family: 'Oswald';
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* LOGIN PAGE SPECIFIC */
.login-body {
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(5,5,5,0.8), rgba(5,5,5,0.9)), url('https://images.unsplash.com/photo-1605806616949-1e87b487cb2a?auto=format&fit=crop&w=1920&q=80') center/cover;
}

.login-box {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
}

.login-box h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
}
.login-box h1 span { color: var(--primary); }

.login-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.discord-login-btn {
    display: inline-block;
    background: #5865F2;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    width: 100%;
    transition: 0.3s;
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}
