/* Estilos personalizados para el Sistema de Inventario */

/* Estilos generales */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Estilos para las tarjetas en el dashboard */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 3rem;
    color: #0d6efd; /* Color primario de Bootstrap */
}

/* Estilo para las tablas de listados */
.table-responsive {
    overflow-x: auto;
}

.table thead th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Página de login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 4rem;
    color: #0d6efd;
}

/* Estilos para formularios */
.required-field::after {
    content: " *";
    color: red;
}

/* Estilos para la página de detalles */
.detail-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px 10px 0 0;
}

.detail-body {
    padding: 20px;
}

.history-timeline {
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: #dee2e6;
}

.history-item {
    position: relative;
    padding-bottom: 20px;
}

.history-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0d6efd;
}

/* Estilos para diferentes estados de activos */
.badge-new {
    background-color: #198754;
}

.badge-used {
    background-color: #0d6efd;
}

.badge-reserved {
    background-color: #fd7e14;
}

.badge-pending {
    background-color: #dc3545;
}

.badge-retired {
    background-color: #6c757d;
}

.badge-installed {
    background-color: #20c997;
}

/* Barra de búsqueda */
.search-container {
    margin-bottom: 20px;
}

/* Botones de acción en las tablas */
.action-buttons .btn {
    margin-right: 5px;
}

/* Paginación personalizada */
.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-link:hover {
    color: #0a58ca;
}