/* General styles for the page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

nav {
    background-color: #007BFF;
    color: #fff;
    padding: 10px;
    text-align: center;
}

nav h1 {
    margin: 0;
    font-size: 24px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

/* Estilos generales para los botones */
button {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Efecto hover para botones activos */
button:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Botón deshabilitado */
button:disabled {
    background-color: #cccccc;
    /* Color gris */
    border-color: #cccccc;
    /* Sin borde colorido */
    color: #666666;
    /* Texto más tenue */
    cursor: not-allowed;
    /* Cursor indicando no interactivo */
    opacity: 0.6;
    /* Más translúcido */
}

.category-block {
    background: #fff;
    margin: 15px auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.category-block h3 {
    margin-top: 0;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
    font-size: 20px;
}

.product-item {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item strong {
    font-weight: bold;
}

/* Modal styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    /* 10% from the top and centered */
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content input[type="number"] {
    width: 60%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.modal-content button {
    width: 80px;
    margin: 10px 5px;
}

#cancel-stock-btn {
    background-color: #6c757d;
}

#cancel-stock-btn:hover {
    background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }

    .category-block {
        max-width: 90%;
    }
}
