/* Custom Dialog & Toast System (shadcn/ui style) */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.custom-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-dialog-box {
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    font-family: 'Inter', sans-serif;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-dialog-overlay.active .custom-dialog-box {
    transform: scale(1);
}

.custom-dialog-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.custom-dialog-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.custom-dialog-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.custom-dialog-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.custom-dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.custom-dialog-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-dialog-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.custom-dialog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    font-family: inherit;
}

.custom-dialog-btn.confirm {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.custom-dialog-btn.confirm:hover {
    background-color: var(--primary-hover);
}

.custom-dialog-btn.danger {
    background-color: #ef4444;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.custom-dialog-btn.danger:hover {
    background-color: #dc2626;
}

.custom-dialog-btn.cancel {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.custom-dialog-btn.cancel:hover {
    background-color: var(--muted);
}

/* Toast Classes */
.custom-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

.custom-toast {
    background-color: var(--background);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.leave {
    transform: translateX(100%);
    opacity: 0;
}

.custom-toast-icon {
    display: flex;
}
.custom-toast-icon.success { color: #10b981; }
.custom-toast-icon.error { color: #ef4444; }
.custom-toast-icon.warning { color: #f59e0b; }
