:root {
    --primary-color: #7209b7;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --bg-dark: #0b090a;
    --card-bg: #161a1d;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Otimização de Performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1a2e, #0b090a);
}

.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-control {
    background-color: #0b090a !important;
    border: 1px solid #2d2d2d !important;
    color: white !important;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-primary-custom:hover {
    opacity: 0.9;
    color: white;
}

/* Dashboard */
.dash-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dash-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 5px 0 0 0;
}

.dash-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* Sidebar Otimizada */
#sidebar-wrapper {
    background: #111;
    min-height: 100vh;
    width: 240px;
    transition: margin 0.25s ease-out;
    border-right: 1px solid #222;
}

#sidebar-wrapper .sidebar-heading {
    padding: 2rem 1rem;
    border-bottom: 1px solid #222;
}

#sidebar-wrapper .list-group-item {
    background: transparent;
    color: #999;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

#sidebar-wrapper .list-group-item:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.02);
}

#sidebar-wrapper .list-group-item.active {
    color: white;
    background: var(--primary-color);
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
}

/* Navbar */
.navbar {
    padding: 0.75rem 1.5rem;
    background: #111 !important;
    border-bottom: 1px solid #222 !important;
}

/* Tabelas */
.table {
    color: #ccc;
}
.table-dark {
    background-color: transparent;
}
.table thead th {
    border-top: none;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #666;
}
.table td {
    border-top: 1px solid #222;
    vertical-align: middle;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}
