/* ============================================
   HajiSIM Toast Notification System
   ============================================ */

.hajisim-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.hajisim-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.15, 0.27, 1.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.hajisim-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast Types */
.hajisim-toast.toast-success {
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1f0d 100%);
    border-left: 4px solid #4CAF50;
}

.hajisim-toast.toast-error {
    background: linear-gradient(135deg, #2a1a1a 0%, #1f0d0d 100%);
    border-left: 4px solid #f44336;
}

.hajisim-toast.toast-warning {
    background: linear-gradient(135deg, #2a2510 0%, #1f1a08 100%);
    border-left: 4px solid #F5A623;
}

.hajisim-toast.toast-info {
    background: linear-gradient(135deg, #1a1f2a 0%, #0d131f 100%);
    border-left: 4px solid #2196F3;
}

/* Icon */
.hajisim-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: 1px;
}

.toast-success .hajisim-toast-icon { color: #4CAF50; }
.toast-error .hajisim-toast-icon { color: #f44336; }
.toast-warning .hajisim-toast-icon { color: #F5A623; }
.toast-info .hajisim-toast-icon { color: #2196F3; }

/* Content */
.hajisim-toast-content {
    flex: 1;
    min-width: 0;
}

.hajisim-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.hajisim-toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
    word-wrap: break-word;
}

/* Close Button */
.hajisim-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    margin-top: -2px;
}

.hajisim-toast-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Progress Bar */
.hajisim-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 10px;
    transition: width linear;
}

.toast-success .hajisim-toast-progress { background: #4CAF50; }
.toast-error .hajisim-toast-progress { background: #f44336; }
.toast-warning .hajisim-toast-progress { background: #F5A623; }
.toast-info .hajisim-toast-progress { background: #2196F3; }

/* Mobile Responsive */
@media (max-width: 480px) {
    .hajisim-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .hajisim-toast {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .hajisim-toast-title {
        font-size: 13px;
    }
    
    .hajisim-toast-message {
        font-size: 12px;
    }
}
