/**
 * TesbihPark Toast Mesaj Sistemi
 * Tüm sayfalarda kullanılabilir ortak toast CSS'i
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

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

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 14px;
}

.toast-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Toast Türleri */
.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-header {
    background: #d4edda;
    color: #155724;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-header {
    background: #fff3cd;
    color: #856404;
}

.toast-danger {
    border-left: 4px solid #dc3545;
}

.toast-danger .toast-header {
    background: #f8d7da;
    color: #721c24;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-header {
    background: #d1ecf1;
    color: #0c5460;
}

/* Kapatma Butonu */
.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

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

.toast-close:focus {
    outline: none;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .toast-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .toast {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        top: 10px;
    }
    
    .toast-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .toast-body {
        padding: 12px;
        font-size: 13px;
    }
}

/* Animasyon İyileştirmeleri */
.toast-enter {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
}

.toast-enter-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-exit {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.toast-exit-active {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}