/* Toast Bildirimleri CSS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 450px;
}

@media (max-width: 576px) {
    .toast-container {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: calc(100% - 30px);
    }
}

.toast-notification {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 16px;
    align-items: flex-start;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

/* Form hataları toast'ı için daha geniş boşluk */
.toast-notification.form-error-toast {
    margin-bottom: 30px;
    margin-top: 10px;
}

.toast-notification.toast-hide {
    animation: slideOut 0.3s ease-in forwards;
}

.toast-notification.success {
    border-left: 5px solid #10b981;
}

.toast-notification.error {
    border-left: 5px solid #ef4444;
}

.toast-icon {
    flex-shrink: 0;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-notification.success .toast-icon {
    color: #10b981;
}

.toast-notification.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex-grow: 1;
    max-width: calc(100% - 50px);
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #1f2937;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.toast-message ul {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.toast-message li {
    margin-bottom: 3px;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.toast-close:hover {
    color: #4b5563;
}

/* Form validation */
.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.1rem rgba(239, 68, 68, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobil için alternatif animasyon */
@media (max-width: 576px) {
    .toast-notification {
        transform: translateY(-100%);
        animation: slideDown 0.3s ease-out forwards;
    }
    
    .toast-notification.toast-hide {
        animation: slideUp 0.3s ease-in forwards;
    }
    
    @keyframes slideDown {
        0% {
            transform: translateY(-100%);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideUp {
        0% {
            transform: translateY(0);
            opacity: 1;
        }
        100% {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
} 