/* Estilos personalizados */
body {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    padding-bottom: 2rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-action {
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.05);
}

.label-preview {
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 12px;
    margin: 8px;
    display: inline-block;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.label-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}

/* Tamaños para impresora 4B-2054L @ 203 DPI */
/* 1mm = 7.9921 píxeles @ 203 DPI */
.label-30x20 {
    width: 240px;  /* 30mm */
    height: 160px; /* 20mm */
}

.label-40x30 {
    width: 320px;  /* 40mm */
    height: 240px; /* 30mm */
}

.label-custom {
    /* Se configurará dinámicamente */
    display: inline-block;
}

.barcode-container {
    text-align: center;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.barcode-text {
    font-size: 8px;
    font-family: monospace;
    margin-top: 2px;
    font-weight: bold;
    color: #333;
}

.product-info {
    font-size: 11px;
    margin: 3px 0;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

.price-info {
    font-weight: bold;
    font-size: 15px;
    color: #28a745;
    margin-top: 4px;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

#previewContainer {
    min-height: 250px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .label-preview {
        margin: 4px;
        padding: 8px;
    }

    .label-30x20 {
        width: 180px;  /* Versión responsive */
        height: 120px;
    }

    .label-40x30 {
        width: 240px;  /* Versión responsive */
        height: 180px;
    }

    .label-custom {
        max-width: 90%;
    }

    .product-info {
        font-size: 10px;
    }

    .price-info {
        font-size: 13px;
    }

    .barcode-text {
        font-size: 7px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.label-preview {
    animation: fadeIn 0.3s ease-out;
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos personalizados para el título */
.custom-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Negrita */
    font-size: 1.5rem; /* Más pequeño que un h1 regular */
    color: #2c3e50; /* Cambia el color según tu diseño */
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
