/**
 * TBF Takvim - Organization
 * Organizasyon listeleri ve kartları
 */

/* ===== CSS DEĞİŞKENLERİ ===== */
:root {
    /* Renkler */
    --tbf-primary-blue: #005AD8;
    --tbf-dark-blue: #001F5A;
    --tbf-light-blue: #e3f2fd;
    --tbf-success-green: #10b981;
    --tbf-warning-orange: #f59e0b;
    --tbf-danger-red: #ef4444;
    --tbf-completed-red: #be0000;
    
    /* Gri tonları */
    --tbf-text-dark: #1e293b;
    --tbf-text-muted: #64748b;
    --tbf-border-light: #e2e8f0;
    --tbf-bg-light: #f8fafc;
    
    /* Gölgeler */
    --tbf-shadow-light: 0 1px 3px rgba(0, 31, 90, 0.05);
    --tbf-shadow-medium: 0 2px 8px rgba(0, 124, 186, 0.3);
    --tbf-shadow-hover: 0 6px 20px rgba(0, 124, 186, 0.4);
    
    /* Geçişler */
    --tbf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ORGANİZASYON CONTAINER ===== */
.tbf-organizations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.tbf-container-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tbf-medium-gray);
}

.tbf-container-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--tbf-primary-color);
    font-weight: 700;
}

/* ===== ORGANİZASYON TABLOSU - MODERNİZE ===== */
.tbf-organizations-table-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 31, 90, 0.08);
    border: 1px solid rgba(0, 31, 90, 0.08);
    transition: var(--tbf-transition);
}

.tbf-organizations-table-wrapper:hover {
    box-shadow: 0 8px 30px rgba(0, 31, 90, 0.12);
}

.tbf-organizations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
    font-size: 14px;
    border-radius: 16px;
    overflow: hidden;
}

.tbf-organizations-table.tbf-completed-table {
    margin: 0;
}

/* Modern Header Design */
.tbf-organizations-table thead {
    background: linear-gradient(135deg, #005AD8 0%, #001F5A 100%);
    position: relative;
}

.tbf-organizations-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4FF 0%, #005AD8 50%, #001F5A 100%);
}

.tbf-organizations-table thead th {
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    position: relative;
    cursor: pointer;
    transition: var(--tbf-transition);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbf-organizations-table thead th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tbf-organizations-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Completed Table Header */
.tbf-organizations-table.completed-table thead {
    background: linear-gradient(135deg, #be0000 0%, #8b0000 100%);
    position: relative;
}

.tbf-organizations-table.completed-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b 0%, #be0000 50%, #8b0000 100%);
}

/* Ensure completed table headers have same styling */
.tbf-organizations-table.completed-table thead th {
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    position: relative;
    cursor: pointer;
    transition: var(--tbf-transition);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbf-organizations-table.completed-table thead th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tbf-organizations-table.completed-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Modern Row Styles */
.tbf-organizations-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 31, 90, 0.06);
    position: relative;
}

.tbf-organizations-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 90, 216, 0.03) 0%, rgba(0, 31, 90, 0.02) 100%);
    box-shadow: 0 2px 8px rgba(0, 31, 90, 0.08);
}

.tbf-organizations-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

.tbf-organizations-table tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(0, 90, 216, 0.04) 0%, rgba(0, 31, 90, 0.02) 100%);
}

/* Modern Cell Styles */
.tbf-organizations-table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 31, 90, 0.06);
    font-size: 0.9rem;
    color: var(--tbf-text-dark);
    vertical-align: middle;
    line-height: 1.5;
}

.tbf-organizations-table tbody td:first-child {
    font-weight: 700;
    color: var(--tbf-text-dark);
    font-size: 1rem;
}

/* Modern Badges */
.calendar-type-badge,
.discipline-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--tbf-transition);
    gap: 4px;
    background: transparent;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.calendar-type-badge:hover,
.discipline-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Button Design */
.tbf-btn.info.tbf-details-link {
    background: linear-gradient(135deg, #005AD8 0%, #00D4FF 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--tbf-transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tbf-btn.info.tbf-details-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.tbf-btn.info.tbf-details-link:hover::before {
    left: 100%;
}

.tbf-btn.info.tbf-details-link:hover {
    box-shadow: 0 8px 25px rgba(0, 90, 216, 0.3);
}

/* Space above completed table */
#tbf-completed-organizations-container {
    margin-top: 10px;
}

/* ===== STATUS BADGE'LERİ ===== */
.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.upcoming {
    background: #cce5ff;
    color: #004085;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

/* Organization Name Column */
.tbf-org-name {
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.tbf-org-name a {
    color: #007cba;
    text-decoration: none;
}

.tbf-org-name a:hover {
    text-decoration: underline;
}

/* ===== STATUS VE EVENT CSS'LERİ ===== */
/* Durum wrapper'ları - başlığın altına yerleştirmek için */
.tbf-org-status-wrapper {
    margin-top: 6px;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}

.tbf-org-status-wrapper-list {
    margin-top: 4px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

/* Etkinlik durumu rozetleri */
.tbf-org-event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 55px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-event-status-active {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.3);
}

.tbf-event-status-upcoming {
    background: linear-gradient(45deg, #2196F3, #42A5F5);
    color: white;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.tbf-event-status-completed {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Liste görünümü için tarih-durum wrapper */
.tbf-org-list-date-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.tbf-org-list-date-status .tbf-org-event-status {
    font-size: 11px;
    padding: 3px 8px;
}

/* ===== TARIH VE DİSİPLİN CSS'LERİ ===== */
/* Date Columns */
.tbf-date-cell {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

/* Calendar Type Badge */
.tbf-calendar-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-calendar-type.ulusal {
    background: #e3f2fd;
    color: #1565c0;
}

.tbf-calendar-type.uluslararasi {
    background: #fff3e0;
    color: #ef6c00;
}

.tbf-calendar-type.uci {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Discipline Badge - Additional styles */
.tbf-discipline-badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-discipline-badge.yol {
    background: #e8f5e8;
    color: #2e7d32;
}

.tbf-discipline-badge.mtb {
    background: #fff8e1;
    color: #f57c00;
}

.tbf-discipline-badge.bmx {
    background: #fce4ec;
    color: #c2185b;
}

.tbf-discipline-badge.pist {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Status CSS'leri */
.tbf-status-published { 
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
    color: white; 
}

.tbf-status-completed { 
    background: linear-gradient(135deg, var(--tbf-success-green) 0%, #059669 100%); 
    color: white; 
}

.tbf-status-cancelled { 
    background: linear-gradient(135deg, var(--tbf-danger-red) 0%, #dc2626 100%); 
    color: white; 
}

.tbf-status-draft { 
    background: linear-gradient(135deg, var(--tbf-warning-orange) 0%, #d97706 100%); 
    color: white; 
}

/* ===== ORGANİZASYON LİSTE GÖRÜNÜMÜ ===== */
.tbf-org-list-item {
    background: #ffffff;
    border: 1px solid var(--tbf-border-light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow-light);
    margin-bottom: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.tbf-org-list-item:hover {
    box-shadow: var(--tbf-shadow-hover);
    border-color: var(--tbf-primary-blue);
}

.tbf-org-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--tbf-primary-blue) 0%, var(--tbf-dark-blue) 100%);
    transition: width 0.3s ease;
}

.tbf-org-list-item:hover::before {
    width: 6px;
}

.tbf-org-list-item[data-discipline="yol"]::before { background: var(--tbf-gradient-primary); }
.tbf-org-list-item[data-discipline="mtb"]::before { background: var(--tbf-gradient-primary); }
.tbf-org-list-item[data-discipline="bmx"]::before { background: var(--tbf-gradient-primary); }
.tbf-org-list-item[data-discipline="pist"]::before { background: var(--tbf-gradient-primary); }

.tbf-org-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, var(--tbf-bg-light) 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--tbf-border-light);
    position: relative;
}

.tbf-org-list-title-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 16px;
}

.tbf-org-list-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tbf-dark-blue);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.025em;
    flex: 1;
    padding-right: 16px;
}

.tbf-org-list-date {
    color: var(--tbf-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 4px;
}

.tbf-org-code-badge {
    background: linear-gradient(135deg, var(--tbf-warning-orange) 0%, #d97706 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: inline-block;
}

.tbf-org-list-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbf-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tbf-success-green);
    animation: tbf-status-pulse 2s ease-in-out infinite;
}

.tbf-status-indicator.completed {
    background: #6b7280;
    animation: none;
}

.tbf-status-badge {
    background: linear-gradient(135deg, var(--tbf-success-green) 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-status-badge.completed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

@keyframes tbf-status-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.tbf-org-list-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.tbf-org-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 55px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow-medium);
    text-decoration: none;
    margin-bottom: 4px;
}

.tbf-org-detail-btn:hover {
    box-shadow: var(--tbf-shadow-hover);
    background: #005a87;
    text-decoration: none;
    color: white;
}

.tbf-org-detail-btn:active {
    box-shadow: 0 3px 12px rgba(0, 124, 186, 0.3);
}

.tbf-org-btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Orta bölüm stileri */
.tbf-org-list-middle {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.tbf-org-list-middle-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.tbf-middle-item {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* List Item Left/Right - Alternatif liste düzeni için */
.tbf-org-list-left {
    flex: 1;
    min-width: 0;
}

.tbf-org-list-subtitle {
    color: var(--tbf-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tbf-org-list-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    flex-shrink: 0;
}

.tbf-org-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tbf-org-list-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tbf-action-btn-enhanced {
    background: linear-gradient(135deg, var(--tbf-primary-blue) 0%, var(--tbf-dark-blue) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 90, 216, 0.2);
}

.tbf-action-btn-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0, 90, 216, 0.3);
    color: white;
    text-decoration: none;
}

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

.tbf-org-header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}

.tbf-org-code-wrapper {
    margin-top: 8px;
}

.tbf-org-code {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--tbf-accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
    letter-spacing: 0.5px;
}

.tbf-org-primary-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tbf-org-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tbf-info-icon {
    font-size: 1.2rem;
    min-width: 24px;
    margin-top: 2px;
}

.tbf-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbf-info-label {
    font-size: 0.85rem;
    color: var(--tbf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-info-value {
    font-size: 1rem;
    color: var(--tbf-text-color);
    font-weight: 600;
}

.tbf-info-extra {
    font-size: 0.85rem;
    color: var(--tbf-text-muted);
    font-style: italic;
}

.tbf-org-description {
    padding: 12px 20px 0;
    border-top: 1px solid #f1f5f9;
    color: var(--tbf-text-muted);
    line-height: 1.5;
}

.tbf-org-description p {
    color: var(--tbf-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Card Meta - Birleştirilmiş meta item stilleri */
.tbf-org-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.tbf-org-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--tbf-text-muted);
}

.tbf-org-meta-item i {
    color: var(--tbf-primary-color);
    font-size: 1.1rem;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.tbf-details-link {
    color: var(--tbf-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.tbf-details-link:hover {
    color: #0a3882;
}

/* ===== ORGANİZASYON LİSTE CSS'LERİ ===== */
.tbf-organizations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.tbf-org-list-content {
    padding: 18px 20px;
}

.tbf-org-list-body {
    padding: 16px 20px;
}

.tbf-org-list-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 20px;
}

.tbf-org-list-meta-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Liste meta item override - grid layout için özel stiller */
.tbf-org-list-meta .tbf-org-meta-item {
    padding: 10px 12px;
    background: var(--tbf-bg-light);
    border-radius: 8px;
    border: 1px solid var(--tbf-border-light);
    transition: all 0.2s ease;
}

.tbf-org-list-meta .tbf-org-meta-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.tbf-meta-item-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--tbf-bg-light);
    border-radius: 8px;
    border: 1px solid var(--tbf-border-light);
    transition: all 0.2s ease;
}

.tbf-meta-item-enhanced:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tbf-meta-icon {
    font-size: 1rem;
    color: var(--tbf-primary-blue);
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
    opacity: 0.8;
}

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

.tbf-meta-label {
    font-size: 0.7rem;
    color: var(--tbf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
    min-width: 50px;
}

.tbf-meta-value {
    font-size: 0.85rem;
    color: var(--tbf-text-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tbf-meta-extra {
    font-size: 0.875rem;
    color: #a0aec0;
    font-weight: 500;
    margin-left: 8px;
}

.tbf-org-list-description {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.9rem;
    border-left: 3px solid #e2e8f0;
}

.tbf-org-list-files {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #c6f6d5;
}

/* File Attachments */
.tbf-org-files {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: var(--tbf-bg-light);
}

.tbf-files-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.tbf-files-icon {
    font-size: 1rem;
    color: var(--tbf-primary-blue);
}

.tbf-files-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tbf-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tbf-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbf-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--tbf-border-light);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--tbf-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 3px 6px 3px 0;
}

.tbf-file-link:hover {
    background: #f1f5f9;
    border-color: var(--tbf-primary-blue);
    color: var(--tbf-primary-blue);
    text-decoration: none;
}

.tbf-file-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== ORGANİZASYON BADGES ===== */
.tbf-org-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    color: #495057;
}

.tbf-org-badge:hover {
    background: #e9ecef;
}

.tbf-org-badge-date {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.tbf-org-badge-date:hover {
    background: #bbdefb;
}

/* Specific Badge Types */
.tbf-type-badge {
    background: #f8f9fa;
    color: #495057;
}

.tbf-location-badge {
    background: #f8f9fa;
    color: #495057;
}

.tbf-category-badge {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc80;
}

.tbf-category-badge:hover {
    background: #ffcc80;
}

.tbf-duration-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.tbf-duration-badge:hover {
    background: #ce93d8;
}

/* Calendar type badge'lerinin org-badge içinde kullanımı */
.tbf-org-badge.tbf-calendar-type.ulusal {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.tbf-org-badge.tbf-calendar-type.ulusal:hover {
    background: #a5d6a7;
}

.tbf-org-badge.tbf-calendar-type.uluslararasi {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc80;
}

.tbf-org-badge.tbf-calendar-type.uluslararasi:hover {
    background: #ffcc80;
}

.tbf-org-badge.tbf-calendar-type.uci {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.tbf-org-badge.tbf-calendar-type.uci:hover {
    background: #ce93d8;
}

/* Discipline badge'lerinin org-badge içinde kullanımı */
.tbf-org-badge.tbf-discipline-badge.yol {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.tbf-org-badge.tbf-discipline-badge.yol:hover {
    background: #a5d6a7;
}

.tbf-org-badge.tbf-discipline-badge.mtb {
    background: #fff8e1;
    color: #f57c00;
    border-color: #ffcc02;
}

.tbf-org-badge.tbf-discipline-badge.mtb:hover {
    background: #ffcc02;
}

.tbf-org-badge.tbf-discipline-badge.bmx {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f48fb1;
}

.tbf-org-badge.tbf-discipline-badge.bmx:hover {
    background: #f48fb1;
}

.tbf-org-badge.tbf-discipline-badge.pist {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.tbf-org-badge.tbf-discipline-badge.pist:hover {
    background: #ce93d8;
}

/* ===== EMPTY STATES ===== */
.tbf-no-organizations {
    text-align: center;
    padding: 80px 20px;
    color: var(--tbf-text-muted);
    background: linear-gradient(135deg, var(--tbf-light-gray) 0%, var(--tbf-medium-gray) 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 40px 0;
}

.tbf-no-organizations-icon {
    font-size: 4em;
    opacity: 0.6;
    margin-bottom: 20px;
    display: block;
}

.tbf-no-organizations h3 {
    color: #495057;
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.tbf-no-organizations p {
    color: var(--tbf-text-muted);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Progressive Loading Animation */
.tbf-fade-in-up {
    animation: tbf-fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tbf-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.tbf-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.tbf-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.tbf-fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.tbf-fade-in-up:nth-child(5) { animation-delay: 0.5s; }

@keyframes tbf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ORGANİZASYON LİSTE GÖRÜNÜM RESPONSIVE ===== */
@media (max-width: 768px) {
    .tbf-org-list-item {
        text-align: center;
    }
    
    .tbf-org-list-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tbf-org-list-title-wrapper {
        align-items: center;
        text-align: center;
        width: 100%;
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .tbf-org-list-title {
        text-align: center;
        margin-bottom: 8px;
        padding-right: 0;
    }
    
    .tbf-org-list-date {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .tbf-org-list-middle {
        justify-content: center;
        text-align: center;
        margin: 15px 0;
        width: 100%;
    }
    
    .tbf-org-list-middle-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tbf-org-list-action {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Ortak responsive stiller - 768px ve altı için */
    .tbf-org-list-status {
        align-self: flex-end;
    }
    
    .tbf-org-list-body {
        padding: 12px 16px;
    }
    
    .tbf-org-list-meta-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tbf-meta-item-enhanced {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tbf-org-list-actions {
        flex-direction: column;
    }
    
    .tbf-action-btn-enhanced {
        justify-content: center;
    }
    
    .tbf-files-list {
        flex-direction: column;
    }
    
    .tbf-file-link {
        max-width: none;
        justify-content: flex-start;
    }

    .tbf-filter-group {
        margin: 0 !important;
    }
}



@media (max-width: 480px) {
    .tbf-org-list-item {
        text-align: center;
        padding: 20px 15px;
    }
    
    .tbf-org-list-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .tbf-org-list-title-wrapper {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .tbf-org-list-title {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .tbf-org-list-date {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .tbf-org-list-middle {
        justify-content: center;
        text-align: center;
        margin: 15px 0;
        width: 100%;
    }
    
    .tbf-org-list-middle-info {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tbf-middle-item {
        text-align: center;
    }
    
    .tbf-org-list-action {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .tbf-org-detail-btn,
    .tbf-details-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }
    
    /* Küçük ekranlarda filtre alanı optimizasyonu */
    .tbf-filters-container {
        padding: 12px 16px;
        margin-bottom: 16px;
    }
    
    .tbf-filter-btn {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 0.95rem;
        margin: 8px auto;
    }
    
    .tbf-filter-btn:first-of-type {
        margin-top: 16px;
        margin-bottom: 8px;
    }
    
    .tbf-filter-btn.completed-scroll {
        margin-top: 8px;
        margin-bottom: 16px;
    }
} 

.completed-heading {
    font-weight: 700;
    margin: 50px 0 15px;
    color: var(--tbf-completed-red);
} 

.tbf-filters-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tbf-filter-group select,
.tbf-filter-group input[type="date"],
.tbf-filter-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 !important;
}

.tbf-filter-group label {
    display: none;
}

.tbf-filter-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tbf-filter-btn.completed-scroll {
    background: linear-gradient(180deg, var(--tbf-completed-red) 0%, #ff5e5e 100%);
    color: #fff;
    margin-left: auto;
}

.tbf-filter-btn.completed-scroll:hover {
    opacity: 0.9;
}

/* Mobile list card */
.tbf-mobile-list {
    display: none !important;
    margin-top: 10px;
}

.tbf-mobile-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.tbf-mobile-card h4 {
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 600;
    color: #2c3e50;
}

.tbf-mobile-meta {
    font-size: .8rem;
    color: #6c757d;
}

.tbf-mobile-meta span {
    display: inline-block;
    margin-right: 6px;
}

.tbf-mobile-btn {
    margin-top: 10px;
    background: var(--tbf-primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .75rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Tamamlanan organizasyonlar için kırmızı buton */
.tbf-mobile-btn.completed,
.tbf-mobile-card.completed .tbf-mobile-btn,
#tbf-completed-organizations-container .tbf-mobile-btn {
    background: var(--tbf-completed-red);
    color: #fff;
}

.tbf-mobile-btn.completed:hover,
.tbf-mobile-card.completed .tbf-mobile-btn:hover,
#tbf-completed-organizations-container .tbf-mobile-btn:hover {
    background: #a00000;
    color: #fff;
}

/* Disabled buton stilleri */
.tbf-mobile-btn.disabled {
    background: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.tbf-mobile-btn.disabled:hover {
    background: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
}

/* Tamamlanan organizasyonlar için disabled buton */
.tbf-mobile-btn.completed.disabled {
    background: #6c757d !important;
    color: #fff !important;
}

.tbf-mobile-btn.completed.disabled:hover {
    background: #6c757d !important;
    color: #fff !important;
}

/* Masaüstünde mobil tabloyu gizle */
@media (min-width: 769px) {
    .tbf-mobile-list {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .tbf-organizations-table {
        display: none !important;
    }
    .tbf-mobile-list {
        display: block !important;
    }
    
    /* Mobil filtre alanı optimizasyonu */
    .tbf-filters-container {
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    
    .tbf-filter-group select,
    .tbf-filter-group input[type="date"],
    .tbf-filter-group input[type="text"] {
        margin: 0 !important;
        height: 44px;
        font-size: 12px;
    }
    
    /* Butonları ortala */
    .tbf-filter-btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 12px auto;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        text-align: center;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tbf-filter-btn:first-of-type {
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .tbf-filter-btn.completed-scroll {
        margin-top: 12px;
        margin-bottom: 20px;
    }
} 