/**
 * Modern Toast Notification Styles
 * Tabler.io temasına uyumlu
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    pointer-events: all;
    min-width: 350px;
    max-width: 450px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
}

.toast-item.toast-enter {
    transform: translateX(120%);
    opacity: 0;
}

.toast-item.toast-active {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.toast-exit {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.toast-success {
    border-left-color: #2fb344;
}

.toast-success .toast-icon {
    background: #2fb344;
}

.toast-error {
    border-left-color: #d63939;
}

.toast-error .toast-icon {
    background: #d63939;
}

.toast-warning {
    border-left-color: #f76707;
}

.toast-warning .toast-icon {
    background: #f76707;
}

.toast-info {
    border-left-color: #0054a6;
}

.toast-info .toast-icon {
    background: #0054a6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.toast-close:hover {
    color: #475569;
    background: #f1f5f9;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast-item {
        background: #1e293b;
    }
    
    .toast-title {
        color: #f1f5f9;
    }
    
    .toast-message {
        color: #cbd5e1;
    }
    
    .toast-close {
        color: #64748b;
    }
    
    .toast-close:hover {
        color: #cbd5e1;
        background: #334155;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast-item {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Confirm Dialog Styles */
.confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-backdrop.show {
    opacity: 1;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 10001;
}

.confirm-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    color: #ffffff;
}

.confirm-icon-success {
    background: linear-gradient(135deg, #2fb344 0%, #27a03b 100%);
}

.confirm-icon-error {
    background: linear-gradient(135deg, #d63939 0%, #c32f2f 100%);
}

.confirm-icon-warning {
    background: linear-gradient(135deg, #f76707 0%, #e55b00 100%);
}

.confirm-icon-info {
    background: linear-gradient(135deg, #0054a6 0%, #004694 100%);
}

.confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.confirm-message {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.confirm-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.confirm-btn-cancel:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-btn-confirm {
    color: #ffffff;
}

.confirm-btn-success {
    background: linear-gradient(135deg, #2fb344 0%, #27a03b 100%);
}

.confirm-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 179, 68, 0.4);
}

.confirm-btn-error {
    background: linear-gradient(135deg, #d63939 0%, #c32f2f 100%);
}

.confirm-btn-error:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 57, 57, 0.4);
}

.confirm-btn-warning {
    background: linear-gradient(135deg, #f76707 0%, #e55b00 100%);
}

.confirm-btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 103, 7, 0.4);
}

.confirm-btn-info {
    background: linear-gradient(135deg, #0054a6 0%, #004694 100%);
}

.confirm-btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 84, 166, 0.4);
}

/* Dark mode support for confirm */
@media (prefers-color-scheme: dark) {
    .confirm-modal {
        background: #1e293b;
    }
    
    .confirm-title {
        color: #f1f5f9;
    }
    
    .confirm-message {
        color: #cbd5e1;
    }
    
    .confirm-btn-cancel {
        background: #334155;
        color: #cbd5e1;
    }
    
    .confirm-btn-cancel:hover {
        background: #475569;
    }
}

/* Mobile responsive for confirm */
@media (max-width: 640px) {
    .confirm-modal {
        padding: 24px;
        width: 95%;
    }
    
    .confirm-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .confirm-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .confirm-title {
        font-size: 18px;
    }
    
    .confirm-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
    }
}

