/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 320px;
    max-width: 440px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn .35s cubic-bezier(.22,1,.36,1) forwards;
    font-size: 13px;
    line-height: 1.5;
}
.toast-exit { animation: toastSlideOut .3s ease forwards; }
.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-message { flex: 1; color: #334155; font-weight: 500; }
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 4px;
    transition: color .15s;
}
.toast-close:hover { color: #475569; }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f1f5f9;
}
.toast-progress-bar {
    height: 100%;
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
}

/* Toast Types */
.toast-success { border-left: 4px solid #059669; }
.toast-success .toast-icon { color: #059669; }
.toast-success .toast-progress-bar { background: #059669; }

.toast-error { border-left: 4px solid #e11d48; }
.toast-error .toast-icon { color: #e11d48; }
.toast-error .toast-progress-bar { background: #e11d48; }

.toast-warning { border-left: 4px solid #d97706; }
.toast-warning .toast-icon { color: #d97706; }
.toast-warning .toast-progress-bar { background: #d97706; }

.toast-info { border-left: 4px solid #2563eb; }
.toast-info .toast-icon { color: #2563eb; }
.toast-info .toast-progress-bar { background: #2563eb; }

/* Toast Animations */
@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- Custom Confirm Dialog --- */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .2s ease;
}
.confirm-overlay.active { opacity: 1; }
.confirm-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    transform: scale(.92);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.confirm-overlay.active .confirm-dialog { transform: scale(1); }
.confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    margin-bottom: 16px;
}
.confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.confirm-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.confirm-btn-cancel {
    padding: 10px 22px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}
.confirm-btn-cancel:hover { background: #f1f5f9; }
.confirm-btn-ok {
    padding: 10px 22px;
    border: none;
    background: #059669;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(5,150,105,.3);
    transition: all .15s;
}
.confirm-btn-ok:hover { background: #047857; box-shadow: 0 4px 12px rgba(5,150,105,.4); }