/* ========================================
   ESTILOS MODERNOS PARA INVENTARIO/STOCK
   Mantiene colores y tamaños originales
   ======================================== */

/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* Mejoras generales para la página de stock */
.card {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Mejoras para el header de la página */
.page-titles {
    margin-bottom: 25px;
}

.page-titles h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #455a64;
    margin-bottom: 8px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item a {
    color: #009efb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Mejoras para los botones */
.btn {
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.btn i {
    margin-right: 6px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #009efb 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 158, 251, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 251, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #fc4b6c 0%, #e91e63 100%);
    box-shadow: 0 4px 15px rgba(252, 75, 108, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 75, 108, 0.4);
}

/* Mejoras para los dropdowns */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(0, 158, 251, 0.1);
    color: #009efb;
}

/* Mejoras para los filtros */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    border-radius: 8px !important;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.form-control:focus {
    border-color: #009efb;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 251, 0.15);
    background: #fff;
}

.selectpicker {
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif;
}

/* Mejoras para el checkbox */
.chk-col-red {
    transform: scale(1.2);
    margin-right: 10px;
}

/* Mejoras para la tabla */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.table-head {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-head th {
    border: none;
    padding: 18px 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #455a64;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table tbody tr:hover {
    background: rgba(0, 158, 251, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border: none;
    color: #455a64;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Mejoras para las etiquetas de estado - MANTENIENDO COLORES ORIGINALES */
.label {
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Colores originales mantenidos */
.label-success {
    background: linear-gradient(135deg, #34d16e 0%, #28a745 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(52, 209, 110, 0.3);
}

.label-warning {
    background: linear-gradient(135deg, #19c4e7 0%, #17a2b8 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(25, 196, 231, 0.3);
}

.label-danger {
    background: linear-gradient(135deg, #fc4b6c 0%, #e91e63 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(252, 75, 108, 0.3);
}

.label-primary {
    background: linear-gradient(135deg, #7460ee 0%, #5e4ec6 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(116, 96, 238, 0.3);
}

.label-info {
    background: linear-gradient(135deg, #00afe9 0%, #0088cc 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 175, 233, 0.3);
}

/* Efectos hover para las etiquetas */
.label:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mejoras para los textos de colores */
.text-success {
    color: #34d16e !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.text-warning {
    color: #19c4e7 !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.text-right {
    text-align: right;
}

/* Mejoras para el campo de búsqueda */
#global_filter {
    border-radius: 25px !important;
    padding-left: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

#global_filter:focus {
    background: #fff;
    border-color: #009efb;
}

#global_filter::placeholder {
    color: #99abb4;
    font-style: italic;
}

/* Mejoras para los floating labels */
.floating-labels .form-group {
    position: relative;
    margin-bottom: 30px;
}

.floating-labels label {
    color: #009efb;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
}

.bar {
    background: #009efb;
    height: 2px;
}

/* Mejoras para los títulos de sección */
.add-ct-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.message-box h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #455a64;
    font-size: 20px;
    letter-spacing: -0.3px;
}

/* Mejoras para iconos */
.fas, .fa {
    margin-right: 5px;
}

/* Iconos específicos con mejores espacios */
.btn .fas, .btn .fa {
    margin-right: 6px;
    font-size: 14px;
}

.dropdown-item .fas, .dropdown-item .fa {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
    .card {
        margin: 10px;
        border-radius: 10px !important;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .label {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .page-titles h4 {
        font-size: 24px;
    }
    
    .table tbody td {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    .table-head th {
        font-size: 12px;
        padding: 15px 8px;
    }
}

/* Mejoras para el estado de carga */
.table tbody tr.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mejoras para el DataTable */
.dataTables_wrapper .dataTables_info {
    color: #99abb4;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #009efb;
    color: white !important;
    border-color: #009efb;
}

/* Mejoras para el contenedor principal */
.stylish-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Efectos de transición suaves */
* {
    transition: all 0.3s ease;
}

/* Mejoras para los números */
.text-right div {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 500;
    font-size: 14px;
}

/* Mejoras para los inputs numéricos */
input[type="number"] {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 500;
}

/* Mejoras para los códigos de producto */
.table tbody td:first-child {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
}

/* Mejoras para los nombres de productos */
.table tbody td:nth-child(2) {
    font-weight: 500;
    color: #212529;
}

/* Mejoras para las categorías */
.table tbody td:nth-child(3) {
    font-size: 13px;
    color: #6c757d;
    text-transform: capitalize;
}

/* Mejoras para los precios */
.table tbody td:nth-child(4),
.table tbody td:nth-child(5) {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 500;
    color: #28a745;
}

/* Mejoras para las cantidades de stock */
.table tbody td:nth-child(6) {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 600;
    font-size: 15px;
}

/* Mejoras para el estado del stock */
.table tbody td:nth-child(7) {
    text-align: center;
}

/* Mejoras para las fechas */
.table tbody td:last-child {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #6c757d;
}

/* Mejoras para el contraste y legibilidad */
.table tbody td {
    line-height: 1.6;
}

/* Mejoras para los tooltips */
[title] {
    cursor: help;
}

/* Mejoras para los estados hover en filas */
.table tbody tr:hover .label {
    transform: scale(1.05);
}

/* Mejoras para la accesibilidad */
.btn:focus,
.form-control:focus,
.dropdown-item:focus {
    outline: 2px solid #009efb;
    outline-offset: 2px;
}

/* Asegurar fondo blanco siempre */
.card {
    background-color: #ffffff !important;
}

body {
    background-color: #f8f9fa !important;
}

.table {
    background-color: #ffffff !important;
}