body {
    /* background:var(--color-primary);
    background: linear-gradient(159deg, var(--color-primary) 12%, var(--color-secondary) 50%, var(--color-tertiary) 100%); */
}
.bg-primary-custom {
    background-color: var(--color-primary);
}

.bg-secondary-custom {
    background-color: var(--color-secondary);
}

.bg-accent-custom {
    background-color: var(--color-accent);
}

.text-primary-custom {
    color: var(--color-primary);
}

.text-secondary-custom {
    color: var(--color-secondary);
}

.text-accent-custom {
    color: var(--color-accent);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    color: white;
    border: none;
}

.btn-primary-custom:hover {
    background-color: #000;
    color: white;
}

.btn-secondary-custom {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
}

.btn-secondary-custom:hover {
    background-color: var(--color-secondary_hover);
    color: var(--color-primary);
}

.login-container {
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.login-header {
    background-color: var(--color-primary);
    color: white;
    padding: 20px;
    text-align: center;
}


.login-form {
    padding: 30px;
    background-color: white;
}

.input-group-custom .input-group-text {
    background-color: var(--color-tertiary);
    border: none;
    color: var(--color-primary);
}

.form-control-custom {
    border-left: none;
    border-color: #ddd;
}

.form-control-custom:focus {
    box-shadow: none;
    border-color: #ddd;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s;
}

.sidebar-collapsed {
    width: 70px !important;
}

.sidebar-collapsed .sidebar-text {
    display: none !important;
}

.sidebar-collapsed .logo-text {
    display: none !important;
}

.sidebar-collapsed .nav-item {
    justify-content: center !important;
}

.main-content {
    transition: margin-left 0.3s;
}

.nav-link-custom {
    color: white;
    border-radius: 5px;
    margin-bottom: 5px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.nav-link-custom i {
    width: 24px;
    text-align: center;
}

.record-detail-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.record-detail-photo:hover {
    transform: scale(1.05);
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.photo-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    margin-top: 5vh;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .sidebar-text {
        display: none;
    }
    
    .sidebar .logo-text {
        display: none;
    }
    
    .sidebar .nav-item {
        justify-content: center !important;
    }
    
    .main-content {
        margin-left: 70px;
    }
}
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8f9fa;
    }
    
    .navbar-brand {
        font-weight: 700;
        font-size: 1.8rem;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    .category-card {
        transition: all 0.3s ease;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border: none;
        margin-bottom: 20px;
    }
    
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    
    .category-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 15px;
        margin: 0;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    
    .product-card {
        transition: all 0.3s ease;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        border: none;
        margin-bottom: 20px;
        height: 100%;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    
    .product-img {
        height: 200px;
        object-fit: contain;
        background-color: #f8f9fa;
        padding: 15px;
    }
    
    .product-title {
        font-weight: 600;
        color: var(--dark-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-price {
        font-weight: 700;
        color: var(--primary-color);
        font-size: 0.9rem;
    }
    
    .badge-discount {
        background-color: var(--accent-color);
        font-size: 0.8rem;
    }
    
    .btn-cart {
        background-color: var(--primary-color);
        color: white;
        border: none;
        width: 100%;
        padding: 8px;
        border-radius: 5px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .btn-cart:hover {
        background-color: var(--secondary-color);
    }
    
    .filter-btn {
        border-radius: 20px;
        padding: 5px 15px;
        margin: 0 5px 10px 0;
        transition: all 0.3s ease;
        background-color: #f1f1f1;
        color: #333;
        border: none;
    }
    
    .filter-btn:hover, .filter-btn.active {
        background-color: var(--primary-color);
        color: white;
    }
    
    .search-box {
        border-radius: 20px;
        padding-left: 15px;
        border: 1px solid #ddd;
    }
    
    .search-btn {
        border-radius: 20px;
        padding-left: 20px;
        padding-right: 20px;
        background-color: var(--primary-color);
        color: white;
        border: none;
    }
    
    .search-btn:hover {
        background-color: var(--secondary-color);
    }
    
    .hero-section {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 60px 0;
        border-radius: 0 0 20px 20px;
        margin-bottom: 30px;
    }
    
    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: var(--accent-color);
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    @media (max-width: 768px) {
        .hero-section {
            padding: 40px 0;
        }
        
        .product-img {
            height: 150px;
        }
    }

    /* Estilos para la pantalla de carga */
    .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, var(--color-primary) 25%, var(--color-secondary) 70%, rgba(211, 206, 202, 1) 100%);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    }

    .loading-screen img{
        width: 160px;
    }

    .loading-hidden {
        opacity: 0;
        visibility: hidden;
    }

    @media (max-width: 768px) {
        .loading-screen img{
            max-width: 130px;
        }
    }