.ref-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ref-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ref-modal {
    background: white;
    border-radius: var(--radius-lg, 1rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.2s ease;
}

.ref-modal-overlay.active .ref-modal {
    transform: scale(1) translateY(0);
}

.ref-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.ref-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.ref-modal-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.ref-modal-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.ref-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color, #0f172a);
    margin-bottom: 0.5rem;
}

.ref-modal-message {
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ref-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0 0 var(--radius-lg, 1rem) var(--radius-lg, 1rem);
}

.ref-modal-actions .btn {
    flex: 1;
}

.ref-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ref-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border-radius: var(--radius-md, 0.75rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color, #0d9488);
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ref-toast.active {
    transform: translateX(0);
}

.ref-toast.success { border-left-color: var(--success-color, #10b981); }
.ref-toast.error { border-left-color: var(--danger-color, #dc2626); }
.ref-toast.info { border-left-color: var(--primary-color, #0d9488); }

.ref-toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ref-toast.success .ref-toast-icon { color: var(--success-color, #10b981); }
.ref-toast.error .ref-toast-icon { color: var(--danger-color, #dc2626); }
.ref-toast.info .ref-toast-icon { color: var(--primary-color, #0d9488); }

.ref-toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color, #0f172a);
}

.ref-toast-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    opacity: 0.6;
    transition: opacity 0.15s;
}

.ref-toast-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .ref-toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .ref-toast {
        min-width: auto;
        max-width: none;
    }
}

