:root {
    --primary: #f1c40f;
    --primary-dark: #f39c12;
    --bg-dark: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #f5f5f5;
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-bg: rgba(10, 10, 15, 0.95);
    --topbar-bg: rgba(15, 15, 15, 0.9);
    --input-bg: #1a1a1a;
    --input-text: #ffffff;
}

/* Modo Claro */
body.light-mode {
    --bg-dark: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.6);
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --topbar-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #ffffff;
    --input-text: #1a1a1a;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: background 0.3s, border 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3 { color: var(--primary); margin-bottom: 1rem; font-weight: 700; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #000; }

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--input-text) !important;
    outline: none;
    transition: background 0.3s, color 0.3s;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2.5rem 1.5rem;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease, background 0.3s, border 0.3s;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    width: 65px;
    filter: drop-shadow(0 0 10px rgba(255,193,7,0.2));
}

.sidebar nav ul { list-style: none; }
.sidebar nav ul li { margin-bottom: 5px; }
.sidebar nav ul li a {
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.sidebar nav ul li a:hover, .sidebar nav ul li a.active {
    background: rgba(241, 196, 15, 0.1);
    color: var(--primary);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2.5rem;
    padding-top: 100px; /* Espaço para Top Bar */
    min-height: 100vh;
}

/* Top Bar */
.top-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 950;
    pointer-events: none;
}

.top-bar {
    margin-left: 280px;
    padding: 0.8rem 2.5rem;
    background: var(--topbar-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    transition: background 0.3s, border 0.3s;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#top-clock {
    font-family: 'monospace';
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0 15px;
}

/* Cards e Stats */
.stat-card { padding: 1.5rem; display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-main); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }

/* Responsividade */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1150;
    background: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1050;
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0; padding: 1rem; padding-top: 100px; }
    .top-bar { margin-left: 0; padding-left: 70px; }
    .hide-mobile { display: none; }
    .bottom-nav { display: flex; }
}

@media (min-width: 1025px) {
    .bottom-nav { display: none; }
    .sidebar-toggle, .sidebar-overlay { display: none !important; }
}

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0; height: 70px;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item.active { color: var(--primary); }
.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
