/* ===== MAGNIFIC-POPUP CENTERING FIX ===== */
.mfp-inline-holder .mfp-content {
    width: auto;
    max-width: 100%;
    text-align: center;
}

/* ===== BASE MODAL CONTAINER ===== */
.modal-block {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    display: inline-block;
    text-align: left;
    width: 100%;
}

.modal-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.modal-card-lg {
    max-width: 750px;
}

/* ===== MODAL HEADER ===== */
.modal-header-app {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
}

.modal-header-app h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== MODAL BODY ===== */
.modal-body-app {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== MODAL FOOTER ===== */
.modal-footer-app {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== FORM SECTIONS (for modals) ===== */
.form-section-modal {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.form-section-modal:last-child {
    margin-bottom: 0;
}

.form-section-title-modal {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 1rem;
}

.form-group-modal {
    margin-bottom: 1rem;
}

.form-group-modal:last-child {
    margin-bottom: 0;
}

.form-label-modal {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.35rem;
    display: block;
    font-size: 0.85rem;
}

.form-control-modal {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    background-color: white;
}

.form-control-modal:focus {
    border-color: #29b6f6;
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(41,182,246,0.15);
}

.form-control-modal:disabled {
    background-color: #e9ecef;
    opacity: 0.8;
}

/* ===== PADELZAP BUTTONS ===== */
.btn-pz-primary {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2,136,209,0.4);
    color: white;
}

.btn-pz-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-pz-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-pz-danger {
    background: #fff5f5;
    border: 2px solid #feb2b2;
    color: #c53030;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-danger:hover {
    background: #c53030;
    border-color: #c53030;
    color: white;
}

.btn-pz-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-warning:hover {
    background: #f9a825;
    border-color: #f9a825;
    color: white;
}

.btn-pz-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-pz-info {
    background: #cce5ff;
    border: 2px solid #0288d1;
    color: #004085;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-pz-info:hover {
    background: #0288d1;
    border-color: #0288d1;
    color: white;
}

/* ===== ALERT INFO (for modals) ===== */
.alert-info-modal {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #0d47a1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal-block,
    .modal-card {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-body-app {
        max-height: 60vh;
    }
}
