/**
 * MondzorgHUB Notification System Styles
 * Toast meldingen en confirm modals
 *
 * @version 1.0.0
 * @since 4.2.0
 */

/* ==========================================================================
   Toast Container
   ========================================================================== */

#mzh-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Mobile positioning */
@media (max-width: 480px) {
    #mzh-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ==========================================================================
   Toast Items
   ========================================================================== */

.mzh-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: auto;
    max-width: 100%;
}

.mzh-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Icon */
.mzh-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.mzh-toast-icon svg {
    width: 20px;
    height: 20px;
}

/* Toast Message */
.mzh-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

/* Toast Close Button */
.mzh-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: -4px -4px -4px 0;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.mzh-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* ==========================================================================
   Toast Types
   ========================================================================== */

/* Success */
.mzh-toast-success {
    border-left: 4px solid #22c55e;
}

.mzh-toast-success .mzh-toast-icon {
    color: #22c55e;
}

/* Error */
.mzh-toast-error {
    border-left: 4px solid #ef4444;
}

.mzh-toast-error .mzh-toast-icon {
    color: #ef4444;
}

/* Warning */
.mzh-toast-warning {
    border-left: 4px solid #f59e0b;
}

.mzh-toast-warning .mzh-toast-icon {
    color: #f59e0b;
}

/* Info */
.mzh-toast-info {
    border-left: 4px solid #5fb6bc;
}

.mzh-toast-info .mzh-toast-icon {
    color: #5fb6bc;
}

/* ==========================================================================
   Confirm Modal Overlay
   ========================================================================== */

.mzh-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.mzh-confirm-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Confirm Modal Box
   ========================================================================== */

.mzh-confirm-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.mzh-confirm-modal-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Content */
.mzh-confirm-content {
    padding: 24px 24px 20px;
}

.mzh-confirm-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Buttons */
.mzh-confirm-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.mzh-confirm-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.mzh-confirm-btn:active {
    transform: scale(0.98);
}

/* Cancel Button */
.mzh-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

.mzh-confirm-cancel:hover {
    background: #e5e7eb;
}

/* OK/Confirm Button */
.mzh-confirm-ok {
    background: #5fb6bc;
    color: #ffffff;
}

.mzh-confirm-ok:hover {
    background: #4da3a9;
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */

@media (max-width: 480px) {
    .mzh-confirm-modal {
        max-width: none;
        margin: 0 10px;
        border-radius: 10px;
    }

    .mzh-confirm-content {
        padding: 20px;
    }

    .mzh-confirm-buttons {
        padding: 12px 20px 20px;
        flex-direction: column-reverse;
    }

    .mzh-confirm-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==========================================================================
   Dark Mode Support (if needed in future)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Kan later toegevoegd worden indien nodig */
}
