/* Toaster Modal Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.toast.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.toast.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.toast.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.tw-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.toast.success .tw-toast-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast.error .tw-toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toast.info .tw-toast-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.toast.warning .tw-toast-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tw-toast-icon i {
    font-size: 18px;
}

.tw-toast-content {
    flex: 1;
    min-width: 0;
}

.tw-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.tw-toast-subtitle {
    font-size: 13px;
    font-weight: normal;
    color: #6b7280;
    line-height: 1.4;
    word-wrap: break-word;
}

.tw-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.tw-toast-close:hover {
    color: #6b7280;
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

/* Container for multiple toasts */
.tw-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.tw-toast-container .toast {
    pointer-events: auto;
    position: relative;
    top: auto;
    right: auto;
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.slide-in {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.slide-out {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 640px) {
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }
    
    .tw-toast-container {
        left: 0;
        right: 0;
        top: 20px;
    }
}

/* Confirm Modal Styles */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal.show {
    opacity: 1;
}

.tw-confirm-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-modal.show .tw-confirm-modal-content {
    transform: scale(1);
}

.tw-confirm-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.tw-confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.tw-confirm-modal-icon i {
    font-size: 20px;
}

.tw-confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.tw-confirm-modal-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.tw-confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tw-confirm-modal-button {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.tw-confirm-modal-button.tw-cancel {
    background: #f3f4f6;
    color: #374151;
}

.tw-confirm-modal-button.tw-cancel:hover {
    background: #e5e7eb;
}

.tw-confirm-modal-button.tw-confirm {
    background: #223b40;
    color: white;
    border: 1px solid #223b40;
}

.tw-confirm-modal-button.tw-confirm:hover {
    background: #ff7e33;
    border-color: #ff7e33;
}
