/* Toast Notification Styles - Premium Dark Glass */
.kaiwei-toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    align-items: center;
}

.kaiwei-toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    min-width: 320px;
    max-width: 480px;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: toast-in 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.kaiwei-toast:hover {
    transform: scale(1.02);
    background: rgba(15, 23, 42, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-message {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Status Indicator Bar (Left) */
.toast-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--kaiwei-brand, #0B9DB3);
}

.kaiwei-toast.success .toast-indicator { background: #10b981; }
.kaiwei-toast.error .toast-indicator { background: #ef4444; }
.kaiwei-toast.warning .toast-indicator { background: #f59e0b; }
.kaiwei-toast.info .toast-indicator { background: #3b82f6; }

/* Icon Styling */
.toast-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kaiwei-toast.success .toast-icon { color: #34d399; }
.kaiwei-toast.error .toast-icon { color: #f87171; }
.kaiwei-toast.warning .toast-icon { color: #fbbf24; }
.kaiwei-toast.info .toast-icon { color: #60a5fa; }

/* Animations */
@keyframes toast-in {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.toast-exit {
    animation: toast-out 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Progress Bar (Optional, for auto-dismiss feeling) */
.kaiwei-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left;
    animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Input Error States - Sleek Brand Style */
.input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    animation: input-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.error-msg-hint {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s ease;
}

@keyframes input-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-2px, 0, 0); }
    40%, 60% { transform: translate3d(2px, 0, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success Modal Refinements */
.modal-success-content {
    text-align: center;
    padding: 20px;
}

.modal-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    animation: scale-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}