/* Variables de colores y tamaños */
:root {
    --color-primary: #2c7be5;
    --color-secondary: #7048e8;
    --color-success: #00d97e;
    --color-warning: #f6c343;
    --color-danger: #e63757;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --sidebar-width: 240px;
    --font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.4;
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-dark);
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.sidebar .logo {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.sidebar .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .nav-list li {
    margin-bottom: 1rem;
}

.sidebar .nav-list a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar .nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive sidebar */
.sidebar.sidebar-open {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }
    .content {
        margin-left: 0;
    }
}

/* Content */
.content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

.main-content {
    padding: 1.5rem;
}

/* Tarjetas de dashboard */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-body {
    font-size: 0.9rem;
}

/* Formulario */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

button.btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button.btn:hover {
    background-color: #1a5fb4;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

th {
    background-color: var(--color-light);
    font-weight: bold;
}

/* Barra de progreso */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.4s ease;
}