/**
 * FINN Rate Limit Confirmation Modal
 *
 * Clean and professional modal for confirming FINN import usage
 *
 * @package Utleiekalk_FINN
 * @since 0.26.0
 */

/* Modal overlay */
.finn-limit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    animation: fadeIn 0.2s ease;
}

.finn-limit-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal container */
.finn-limit-modal {
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal header */
.finn-limit-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.finn-limit-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Modal body */
.finn-limit-modal-body {
    padding: 24px;
}

.finn-limit-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.finn-limit-usage-info {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4b5563;
}

.finn-limit-usage-info strong {
    color: #111827;
    font-weight: 600;
}

/* Checkbox for "don't ask again" */
.finn-limit-dont-ask {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.finn-limit-dont-ask input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.finn-limit-dont-ask label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Modal footer / actions */
.finn-limit-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 24px 24px;
}

.finn-limit-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.finn-limit-modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.finn-limit-modal-btn-cancel:hover {
    background: #e5e7eb;
}

.finn-limit-modal-btn-confirm {
    background: #1d4ed8;
    color: white;
}

.finn-limit-modal-btn-confirm:hover {
    background: #1e40af;
}

.finn-limit-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .finn-limit-modal {
        width: 95%;
        max-width: none;
    }

    .finn-limit-modal-header,
    .finn-limit-modal-body,
    .finn-limit-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .finn-limit-modal-title {
        font-size: 18px;
    }

    .finn-limit-modal-message {
        font-size: 14px;
    }

    .finn-limit-modal-footer {
        flex-direction: column-reverse;
    }

    .finn-limit-modal-btn {
        width: 100%;
    }
}
