/* KrakN Notification Toast Styles */

.notification-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    min-width: 320px;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.notification-toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.notification-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.notification-toast-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-toast-body {
    flex: 1;
    min-width: 0;
}

.notification-toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-toast-time {
    font-size: 12px;
    color: #6b7280;
}

.notification-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.notification-toast-progress {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    transition: width linear;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .notification-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Notification Settings Modal */
.notification-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.notification-settings-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.notification-settings-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.notification-settings-modal.show .notification-settings-content {
    transform: scale(1);
}

.notification-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.notification-settings-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.notification-settings-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.notification-setting-item:last-child {
    border-bottom: none;
}

.notification-setting-info {
    flex: 1;
}

.notification-setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.notification-setting-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Toggle Switch */
.notification-toggle {
    position: relative;
    width: 48px;
    height: 28px;
}

.notification-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notification-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.notification-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.notification-toggle input:checked + .notification-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-toggle input:checked + .notification-toggle-slider:before {
    transform: translateX(20px);
}

.notification-settings-footer {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.notification-settings-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-test {
    background: #f3f4f6;
    color: #374151;
}

.btn-test:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

