:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --bg-color: #f4f6f9;
    --text-color: #333;
    --border-color: #e0e0e0;
    --sidebar-width: 250px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-btn {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #f1f3f5;
}

.nav-btn.active {
    background: #e9f2fb;
    border-left-color: var(--primary-color);
    font-weight: bold;
    color: var(--primary-color);
}

.container {
    flex: 1;
    padding: 40px;
    max-width: calc(100vw - var(--sidebar-width));
}

.module-section {
    display: none;
}

.module-section.active {
    display: block;
}

h1 { margin-bottom: 10px; font-size: 1.8rem; }
p { margin-bottom: 25px; color: #666; }

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h3 { color: #666; font-size: 1rem; margin-bottom: 10px; }
.stat-card .valor { font-size: 2rem; font-weight: bold; color: var(--primary-color); }

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th { background-color: #f8f9fa; font-weight: 600; }
tr:hover { background-color: #fbfbfb; }