/**
 * Almacén Cotizaciones - Modal Styles
 */

/* Quote Button */
.almacen-quote-button {
    width: 100%;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: center;
    background-color: #E7F4FD !important;
    color: #334E68 !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.almacen-quote-button:hover {
    background-color: #D0E8F9 !important;
    color: #334E68 !important;
}

/* Prevent body scroll when modal is open */
body.almacen-modal-open {
    overflow: hidden;
}

/* Modal Container */
.almacen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

/* Modal Overlay */
.almacen-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.almacen-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.almacen-modal-header {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.almacen-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #303030;
}

.almacen-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.almacen-modal-close:hover {
    color: #333;
}

/* Modal Body */
.almacen-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.almacen-modal-intro {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Form Styles */
.almacen-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.almacen-form-group {
    flex: 1;
}

.almacen-col-6 {
    flex: 0 0 calc(50% - 7.5px);
}

.almacen-col-12 {
    flex: 0 0 100%;
}

.almacen-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #303030;
}

.almacen-form-group .required {
    color: #e74c3c;
}

.almacen-form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.almacen-form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.almacen-form-group input.error {
    border-color: #e74c3c;
}

/* Form Messages */
.almacen-form-message {
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.almacen-form-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.almacen-form-message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Modal Footer */
.almacen-modal-footer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.almacen-modal-footer .button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.almacen-modal-cancel {
    background-color: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.almacen-modal-cancel:hover {
    background-color: #e5e5e5 !important;
}

.almacen-modal-submit {
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
}

.almacen-modal-submit:hover {
    background-color: #005a87 !important;
}

.almacen-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .almacen-modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }

    .almacen-form-row {
        flex-direction: column;
        gap: 0;
    }

    .almacen-col-6,
    .almacen-col-12 {
        flex: 0 0 100%;
    }

    .almacen-modal-header h2 {
        font-size: 18px;
    }

    .almacen-modal-footer {
        flex-direction: column;
    }

    .almacen-modal-footer .button {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.almacen-modal-content {
    animation: fadeIn 0.3s ease;
}
