/* === Toast / Notification Styles (ოდნავ უფრო მარჯვნივ) === */

#toast-container {
    position: fixed;
    top: 100px; /* ჰედერის სიმაღლე */
    
    left: 0;
    right: 0;
    
    /* 🔥 შეცვლილია: 1400-ის ნაცვლად 1500px */
    /* ეს ნიშნავს, რომ მთავარ კონტენტზე 50px-ით უფრო მარჯვნივ იქნება */
    max-width: 1450px; 
    
    margin: 0 auto; 
    
    /* პატარა ეკრანებზე (ლეპტოპებზე) რომ კუთხეში არ მიეკროს */
    padding-right: 20px; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* მარჯვნივ აწვება */
    gap: 12px;
    
    z-index: 10000;
    pointer-events: none;
}

/* ✅ დიდ ეკრანებზე padding-ს ვაშორებთ, რომ ზუსტად 1500px-ის კიდეზე დადგეს */
@media (min-width: 1550px) {
    #toast-container {
        padding-right: 0;
    }
}

.notification {
    position: relative;
    display: flex;
    align-items: center; 
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px; 
    
    /* 🎨 Glassmorphism (მუქი) */
    background: rgba(20, 20, 20, 0.92); 
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05); 

    color: #ffffff;
    pointer-events: auto;
    overflow: hidden;
    
    width: auto;
    max-width: 400px;
    min-width: 300px;
    
    opacity: 0;
    transform: translateY(-20px) scale(0.95); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- იკონკები --- */
.notification i {
    font-size: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

/* --- ფერადი ხაზი --- */
.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* ✅ Success */
.notification--success i { color: #2ecc71; }
.notification--success::before { background-color: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }

/* ❌ Error */
.notification--error i { color: #e74c3c; }
.notification--error::before { background-color: #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }

/* ⚠️ Info */
.notification--info i { color: #3498db; }
.notification--info::before { background-color: #3498db; }

/* --- ტექსტი --- */
.notification span {
    font-family: 'Alk Sanet', 'Noto Sans Georgian', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.95);
}


/* ============================================================
   📱 მობილურის ადაპტაცია
============================================================ */
@media (max-width: 768px) {
    #toast-container {
        max-width: 100%;
        padding-right: 0;
        align-items: center;
        
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        
        top: 80px; 
        top: calc(80px + env(safe-area-inset-top)); 
    }

    .notification {
        width: 100%;
        max-width: none;
        padding: 14px 18px; 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); 
        justify-content: flex-start; 
        text-align: left;
    }
    
    .notification span {
        font-size: 0.9rem; 
    }
}