/**
 * Estilos personalizados para el Sistema de Pedidos
 */

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    flex: 1;
}

/* Estilos para el header */
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Estilos para elementos activos en la navegación */
.navbar-nav .nav-item.active .nav-link {
    font-weight: bold;
    color: #0d6efd;
}

/* Estilos para tarjetas */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Estilos para botones */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos para tablas */
.table {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Estilos para formularios */
.form-control, .form-select {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* Estilos para modales */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 4px;
}

/* Estilos para el footer */
footer {
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Estilos para impresión */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background-color: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .ficha-pedido {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin: 0.5cm;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 767.98px) {
    .navbar-brand span {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Estilos para el panel de administración */
.admin-sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 72px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.admin-sidebar .nav-link.active {
    color: #0d6efd;
    background-color: #e9ecef;
    font-weight: bold;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Estilos para fichas de impresión */
.ficha-pedido {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
}

.ficha-pedido .ficha-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.ficha-pedido .ficha-logo {
    max-height: 50px;
}

.ficha-pedido .ficha-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ficha-pedido .ficha-info {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ficha-pedido .ficha-productos {
    margin-top: 1rem;
}

/* Estilos para el formulario de pedidos */
.producto-item {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
}

.producto-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Estilos para paginación */
.pagination .page-item .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Eliminar espacios en blanco innecesarios */
.container, .container-fluid {
    padding-top: 0;
    padding-bottom: 0;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }
} 