/* UI Notifications and Modals */

:root {
    --toast-success: #10b981;
    --toast-error: #ef4444;
    --toast-bg: rgba(255, 255, 255, 0.85);
    --modal-bg: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--toast-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
}

.toast.success::before { background: var(--toast-success); }
.toast.error::before { background: var(--toast-error); }

.toast-icon {
    font-size: 1.25rem;
}

/* Modal System */
.ui-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ui-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.ui-modal {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ui-modal-overlay.show .ui-modal {
    transform: scale(1);
}

.ui-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.ui-modal-text {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ui-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ui-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ui-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.ui-btn-cancel:hover { background: #e5e7eb; }

.ui-btn-danger {
    background: var(--toast-error);
    color: white;
}

.ui-btn-danger:hover { background: #dc2626; opacity: 0.9; }
