/* ============================================================
   MODAL ADVANCED SEARCH - STYLE
   Path: plugins/multi_opac_path/assets/css/modaladv.css
   Version: 1.0.0
   ============================================================ */

.adv-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.adv-modal .modal-header {
    background: var(--primary-color, #0d6efd);
    color: white;
    padding: 16px 24px;
    border-bottom: none;
}

.adv-modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.adv-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.adv-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.adv-modal .modal-body {
    padding: 24px;
    background: #f8f9fa;
}

.adv-modal .form-group {
    margin-bottom: 16px;
}

.adv-modal .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary-color, #212529);
    margin-bottom: 4px;
}

.adv-modal .form-group .form-control,
.adv-modal .form-group .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adv-modal .form-group .form-control:focus,
.adv-modal .form-group .form-select:focus {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.adv-modal .modal-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.adv-modal .modal-footer .btn-primary {
    background: var(--primary-color, #0d6efd);
    border: none;
    border-radius: 50px;
    padding: 10px 32px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.adv-modal .modal-footer .btn-primary:hover {
    background: var(--primary-dark, #0a58ca);
    transform: translateY(-2px);
}

.adv-modal .modal-footer .btn-secondary {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
}

.adv-modal .section-divider {
    border: none;
    border-top: 2px dashed #e0e0e0;
    margin: 20px 0;
}

.adv-modal .section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 700;
    margin-bottom: 12px;
}

.adv-modal .loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color, #0d6efd);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .adv-modal .modal-body {
        padding: 16px;
    }
    .adv-modal .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    .adv-modal .modal-footer .btn {
        width: 100%;
    }
}
