/* TBF Portal Global Notification System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Custom Notification System */
.tbf-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 350px;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(450px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    font-family: 'Poppins', sans-serif;
}

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

.tbf-notification-header {
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbf-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.tbf-notification-icon.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Bildirimler Sayfası Stilleri */

.notification-full-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-full-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.notification-full-item.unread {
    border-left-color: var(--secondary-teal);
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notification-type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-etkinlik_katilim { background: var(--secondary-teal); }
.badge-etkinlik_olusturma { background: var(--primary-purple); }
.badge-etkinlik_yaklasan { background: #ffa726; }
.badge-unvan_degisiklik { background: #66bb6a; }
.badge-admin_istek { background: #ef5350; }
.badge-onay_bekleyen { background: #42a5f5; }
.badge-sertifika_hatirlatma { background: #ff7043; }
.badge-sertifika_aktivite { background: #ec407a; }
.badge-mentor_talep { background: #ab47bc; }
.badge-mentor_onay { background: #26a69a; }
.badge-mentor_red { background: #ef5350; }
.badge-yukumluluk_tamamlama { background: #5c6bc0; }
.badge-yukumluluk_onay { background: #66bb6a; }
.badge-yukumluluk_red { background: #ef5350; }
.badge-profil_eksik { background: #ffa726; }
.badge-dogum_gunu { background: #ff6f00; }
.badge-aktivite_skor { background: #7e57c2; }
.badge-basari_rozeti { background: #ffd700; color: #333; }
.badge-statu_degisiklik { background: #78909c; }
.badge-etkinlik_hatirlatma { background: #29b6f6; }
.badge-talep_yanit { background: #8bc34a; }
.badge-sistem_rapor { background: #607d8b; }

.notification-time {
    color: var(--text-muted);
    font-size: 13px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.notification-message {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.notification-sender {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.filter-tabs {
    margin-bottom: 20px;
}

.filter-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    margin-right: 10px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.filter-tabs .nav-link.active {
    background: var(--secondary-teal);
    color: white;
}

.mark-all-read {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-teal));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mark-all-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.tbf-notification-icon.error {
    background: linear-gradient(135deg, #F44336, #e53935);
}

.tbf-notification-icon.warning {
    background: linear-gradient(135deg, #FF9800, #f57c00);
}

.tbf-notification-icon.info {
    background: linear-gradient(135deg, #2196F3, #1976d2);
}

.tbf-notification-content {
    flex: 1;
}

.tbf-notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0 0 4px 0;
}

.tbf-notification-message {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.tbf-notification-close {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tbf-notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

.tbf-notification-body {
    padding: 0 20px 20px 20px;
}

.tbf-notification-progress {
    height: 3px;
    background: #f0f0f0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.tbf-notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #621C8A, #4CADB8);
    width: 100%;
    transform: translateX(-100%);
    animation: progressBar 4s linear forwards;
}

@keyframes progressBar {
    to {
        transform: translateX(0);
    }
}

/* Notification container for multiple notifications */
.tbf-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.tbf-notifications-container .tbf-notification {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 15px;
    pointer-events: all;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tbf-notification {
        min-width: 300px;
        max-width: 350px;
        margin: 0 10px;
    }
    
    .tbf-notifications-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .tbf-notification {
        transform: translateY(-100px);
    }
    
    .tbf-notification.show {
        transform: translateY(0);
    }
}

/* ===========================================
   TBF CONFIRMATION DIALOG STYLES
   =========================================== */

.tbf-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.tbf-confirm-overlay.tbf-confirm-show {
    opacity: 1;
    visibility: visible;
}

.tbf-confirm-overlay.tbf-confirm-hiding {
    opacity: 0;
    visibility: hidden;
}

.tbf-confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    margin: 20px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    font-family: 'Poppins', sans-serif;
}

.tbf-confirm-overlay.tbf-confirm-show .tbf-confirm-dialog {
    transform: scale(1);
}

.tbf-confirm-header {
    padding: 20px 20px 0 20px;
    border-bottom: none;
}

.tbf-confirm-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
}

.tbf-confirm-body {
    padding: 15px 20px 20px 20px;
}

.tbf-confirm-message {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.tbf-confirm-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tbf-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.tbf-btn-secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.tbf-btn-secondary:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.tbf-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #2563eb;
}

.tbf-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tbf-btn:active {
    transform: translateY(0);
}

.tbf-btn i {
    font-size: 12px;
}

/* Mobile optimizations for confirm dialog */
@media (max-width: 480px) {
    .tbf-confirm-dialog {
        width: 95%;
        margin: 10px;
    }

    .tbf-confirm-footer {
        flex-direction: column;
    }

    .tbf-btn {
        width: 100%;
        padding: 12px 16px;
    }
}