/* Estilos base */
:root {
    --primary-color: rgb(212, 0, 0);
    --secondary-color: #ffffff;
    --background-color: #f8f9fa;
    --text-color: #333;
}

.form-signin {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

body {
    /* display: flex; */
    /* align-items: center; */
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    /* height: 100%; */
}

/* Header */
.header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    padding: 1rem 0;
}

h2 {
    color: rgb(212, 0, 0) !important;
}

h3 {
    color: rgb(212, 0, 0) !important;
}

select option {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(212, 0, 0) !important;
}

select {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(212, 0, 0) !important;
    border: 0.1rem solid rgb(212, 0, 0) !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

select :checked {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(212, 0, 0) !important;
}

/* Usado en el select de tickets */

.select-holgado {
    min-width: 5rem;
    width: auto;
    padding-right: 2rem;
}

.navbar {
    background-color: rgba(255, 255, 255, 0);
    border-color: rgb(212, 0, 0);
    border-width: 0.1em;
    border-top-style: solid;
    border-bottom-style: solid;
}

.navbar-brand {
    font-weight: 600;
    color: rgb(212, 0, 0) !important;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    outline: none;
}

.navbar-toggler-hover {
    background-color: rgb(255, 255, 255);

}

/* Navegación */

.nav-link {
    color: rgb(212, 0, 0) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: blue;
    /* background-color: yellow; */
}

.nav-link.hover {
    color: orange !important;
    background-color: gray;

}

/* Tablas */
thead th {
    color: rgb(212, 0, 0);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .container {
    text-align: center;
}

/* Contenido principal */
.main-content {
    padding: 2rem 0;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.btn {
    background-color: white;
    color: var(--primary-color);
    border: 0.1rem solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 5px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: auto;
    /* para btn-block */
    text-align: center;
}


.btn:hover {
    background-color: var(--primary-color);
    color: white;
    border: 0.1rem solid var(--primary-color);
    transform: translateY(-2px);
}


a {
    color: rgb(212, 0, 0);
    ;
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.label {
    color: rgb(212, 0, 0);
    ;
    text-decoration: none;
}

.form-control {
    color: var(--primary-color);
}

.icon-red {
    color: rgb(212, 0, 0) !important;
}

.btn-outline-primary {
    color: rgb(212, 0, 0);
    border-color: rgb(212, 0, 0);
    background-color: white;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-check:active+.btn-outline-primary,
.btn-check:hover+.btn-outline-primary,
.btn-check:focus+.btn-outline-primary {
    background-color: rgb(212, 0, 0);
    color: white;
    border-color: rgb(212, 0, 0);
    box-shadow: none;
}

.btn-check:checked+.btn-outline-primary {
    background-color: rgb(212, 0, 0);
    color: white;
    border-color: rgb(212, 0, 0);
    box-shadow: none;
}

/* Estilo coherente para botón Restablecer */
.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: white;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:not(:disabled):not(.disabled).active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: none;
}

.stat-card {
    transition: all 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: #f9f9f9;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.table td.text-end {
    text-align: right;
}

.pagination .page-link {
    color: rgb(212, 0, 0);
    border: 1px solid rgb(212, 0, 0);
    background-color: white;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: rgb(212, 0, 0);
    color: white;
    border-color: rgb(212, 0, 0);
}

.pagination .page-item.active .page-link {
    background-color: rgb(212, 0, 0);
    color: white;
    border-color: rgb(212, 0, 0);
}


/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Diseño móvil */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    h4 {
        border-left: 4px solid var(--primary-color);
        padding-left: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem;
    }

    .btn {
        width: 100%;
    }

    .stat-card .fs-5 {
        font-size: 1.1rem;
    }

    .stat-card .small {
        font-size: 0.85rem;
    }

    .table-responsive {
        overflow-x: hidden;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        background-color: #fff;
        padding: 0.5rem;
    }

    .table tbody td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border: none;
    }

    .table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 0.25rem;
    }

    #filterForm .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    #filterForm .btn-group label {
        margin-bottom: 0.5rem;
    }

    #filterForm .form-label {
        font-size: 0.9rem;
    }

    #filterForm input,
    #filterForm select {
        font-size: 0.95rem;
    }

    .footer {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        margin-top: 0;
    }

    #clearCustomerBtn {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0.5rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}