/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    color: #333; /* Texto principal más claro */
}

/* Header */
.main-header {
    background-color: #000000;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.toggle-button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: 1.5rem;
    margin: 0;
    flex-grow: 1;
    font-weight: bold;
}

.user-info {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info i {
    font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #000000;
    color: white;
    position: fixed;
    height: 100vh;
    top: 60px; /* Ajuste clave: Deja espacio para el header */
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
    transform: translateX(-100%); /* Ocultar el sidebar por defecto */
}

.sidebar.active {
    transform: translateX(0); /* Mostrar el sidebar */
}

.sidebar-header {
    text-align: center;
    padding: 1rem;
    background-color: #222;
    border-bottom: 1px solid #444;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.sidebar-nav ul li a:hover {
    background-color: #5c5c5c;
}

.sidebar-nav ul li a i {
    font-size: 1.2rem;
}

/* Contenido principal */
.dashboard {
    margin-left: 250px; /* Espacio para el sidebar */
    padding: 2rem;
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    margin-top: 60px; /* Ajuste clave: Deja espacio para el header */
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .dashboard {
        margin-left: 0;
    }
}

/* Tarjetas */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.card p {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Colores personalizados para las tarjetas */
.card-primary {
    border-left: 4px solid #020202;
    color: #020202;
}

.card-secondary {
    border-left: 4px solid #6c757d;
    color: #6c757d;
}

.card-warning {
    border-left: 4px solid #079cff;
    color: #079cff;
}

.card-info {
    border-left: 4px solid #020202;
    color: #020202;
}

.card-success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.card-danger {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* Estilo específico para la tabla del inventario */
.table-inventario {
    font-size: 0.9rem; /* Reduce el tamaño de la fuente */
}

.table-inventario th,
.table-inventario td {
    vertical-align: middle; /* Alinea el texto verticalmente */
    padding: 0.5rem; /* Reduce el padding para un diseño más compacto */
}

/* Estilo específico para la tabla de impresoras */
.table-impresoras {
    font-size: 0.9rem; /* Reduce el tamaño de la fuente */
}

.table-impresoras th,
.table-impresoras td {
    vertical-align: middle; /* Alinea el texto verticalmente */
    padding: 0.5rem; /* Reduce el padding para un diseño más compacto */
}

