/* Modern Bildirim Sistemi */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

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

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

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid var(--border);
}

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

.notification-icon .custom-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon .custom-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.notification-icon .custom-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Onay gerektiren bildirimler için özel ikon stili */
.notification-icon.confirmation-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--border);
    color: var(--text);
}

.notification-body {
    padding: 16px 20px 20px 20px;
}

/* Onay gerektiren bildirimler için özel stiller */
.notification.confirmation-required {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification.confirmation-required .notification-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--primary);
}

/* Onay butonları */
.confirmation-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid var(--border);
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-confirm, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.btn-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-cancel {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #c82333 0%, #e8590c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Admin onay bildirimleri için özel stiller */
.notification.admin-approval {
    border-color: #ffc107;
}

.notification.admin-approval .notification-header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-bottom-color: #ffc107;
}

.notification.admin-approval .notification-icon.confirmation-icon {
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
}

/* Driver onay bildirimleri için özel stiller */
.notification.driver-approval {
    border-color: #17a2b8;
}

.notification.driver-approval .notification-header {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-bottom-color: #17a2b8;
}

.notification.driver-approval .notification-icon.confirmation-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Progress bar */
.notification-progress {
    height: 3px;
    background: var(--primary);
    width: 100%;
    transition: width 0.3s ease;
}

/* Bildirim türlerine göre renkler */
.notification.success {
    border-left: 4px solid #28a745;
}

.notification.success .notification-icon {
    background: #28a745;
    color: white;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.error .notification-icon {
    background: #dc3545;
    color: white;
}

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

.notification.warning .notification-icon {
    background: #ffc107;
    color: white;
}

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

.notification.info .notification-icon {
    background: #17a2b8;
    color: white;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .btn-confirm, .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Animasyonlar */
.notification {
    animation: slideInRight 0.4s ease-out;
}

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

.notification.hide {
    animation: slideOutRight 0.4s ease-in;
}

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

/* Hover efektleri */
.notification:hover {
    transform: translateX(0) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Loading animasyonu */
.notification.loading .notification-icon i {
    animation: spin 1s linear infinite;
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Özel bildirim stilleri */
.notification.booking-success {
    border-left-color: #28a745;
}

.notification.booking-error {
    border-left-color: #dc3545;
}

/* Fallback ikon stilleri */
.notification-icon .custom-icon span {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* İkon renkleri */
.notification.success .notification-icon .custom-icon span {
    color: white;
}

.notification.error .notification-icon .custom-icon span {
    color: white;
}

.notification.warning .notification-icon .custom-icon span {
    color: #212529;
}

.notification.info .notification-icon .custom-icon span {
    color: white;
} 