/* ========================================
   SHARED TOAST NOTIFICATIONS & CONFIRM MODALS
======================================== */

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', Arial, sans-serif;
}

.toast-notification.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-hiding {
    opacity: 0;
    transform: translateX(400px);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.toast-message {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    white-space: pre-line;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

/* Type variants */
.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-success .toast-content i {
    color: #4CAF50;
}

.toast-warning {
    border-left: 4px solid #ff9800;
}

.toast-warning .toast-content i {
    color: #ff9800;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-error .toast-content i {
    color: #f44336;
}

.toast-info {
    border-left: 4px solid #2196f3;
}

.toast-info .toast-content i {
    color: #2196f3;
}

/* --- Confirm Modal --- */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

.confirm-modal-overlay.confirm-visible {
    opacity: 1;
}

.confirm-modal {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 28px 32px 24px;
    max-width: 420px;
    width: 90%;
    transform: scale(0.92);
    transition: transform 0.2s ease;
}

.confirm-modal-overlay.confirm-visible .confirm-modal {
    transform: scale(1);
}

.confirm-modal-message {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.confirm-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-modal-btn {
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Poppins', Arial, sans-serif;
}

.confirm-modal-btn:active {
    transform: scale(0.97);
}

.confirm-modal-btn.confirm-cancel {
    background: #e8ecef;
    color: #555;
}

.confirm-modal-btn.confirm-cancel:hover {
    background: #ddd;
}

.confirm-modal-btn.confirm-ok {
    background: var(--primary-color, #2c6e7f);
    color: white;
}

.confirm-modal-btn.confirm-ok:hover {
    background: var(--hover-color, #1f4b57);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .toast-notification.toast-visible {
        transform: translateY(0);
    }

    .toast-notification.toast-hiding {
        transform: translateY(-100px);
    }

    .confirm-modal {
        padding: 22px 20px 20px;
    }
}
