:root {
    --sidebar-bg: #1e293b;
    --main-bg: #f8fafc;
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background: var(--main-bg); color: #334155; }

.main-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    padding: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.nav-links { list-style: none; }
.nav-links li { margin: 10px 0; }
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-links li.active a, .nav-links a:hover {
    background: #334155;
    color: white;
}

/* Main Content */
.content { flex: 1; padding: 30px; }
.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.table-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: center; padding: 15px; border-bottom: 1px solid #e2e8f0; }

.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.entry { background: #d1fae5; color: #065f46; }
.exit { background: #fee2e2; color: #991b1b; }

.actions { margin-bottom: 20px; display: flex; gap: 10px; }
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}
.btn-entry { background: var(--success); }
.btn-exit { background: var(--accent); }

/* --- NUEVOS ESTILOS PARA MODALES --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}