/* Unit Detail Page Styles */
.unit-detail-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Üst Özet Bölümü */
.unit-summary-section {
    background: #074d78;
    border-radius: 0.5rem;
    padding: 2rem;
    /*margin-bottom: 40px;*/
    /*box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);*/
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 18px 0;
    font-family: system-ui, sans-serif;
}

.unit-icon {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.unit-icon svg {
    fill: rgba(255, 255, 255, 0.92);
}

.unit-info {
    flex: 1;
}

.unit-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 2.5rem;
    font-family: system-ui, sans-serif;
}

.unit-stats {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-family: system-ui, sans-serif;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-family: system-ui, sans-serif;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 14px;
    border-radius: 999px;
}

.stat-icon {
    font-size: 1.1rem;
}

.unit-actions {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background: #facc14;
    color: #074d78;
    border: none;
    padding: 12px 18px;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: system-ui, sans-serif;
    white-space: nowrap;
}

    .btn-primary:hover {
        background: #ffd84d;
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
    }

/* Filtre Sekmeleri - Yatay Kaydırma ile */
.filter-tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(1000%) hue-rotate(210deg) brightness(0.9) contrast(1);
    cursor: pointer;
    flex-shrink: 0;
}

.scroll-left-btn {
    transform: rotate(180deg);
}

.nav-icon:hover {
    filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(1000%) hue-rotate(210deg) brightness(0.8) contrast(1);
    transform: scale(1.1);
}

.scroll-left-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

.nav-icon:active {
    transform: scale(0.95);
}

.scroll-left-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.nav-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.8) contrast(0.8);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    cursor: grab;
    user-select: none;
    min-height: 50px;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex: 1;

}

    .filter-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .filter-tabs:hover {
        cursor: grab;
    }

    .filter-tabs:active {
        cursor: grabbing !important;
    }

    .filter-tabs.dragging {
        cursor: grabbing !important;
        user-select: none;
    }

        .filter-tabs.dragging .tab-btn {
            pointer-events: none;
            user-select: none;
        }

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    /*font-size: 1.1rem;*/
    font-weight: 500;
    color: #074d78;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    outline: none;
    font-family: system-ui,sans-serif;
}

    .tab-btn:hover {
        color: #074d78;
        background: #f8f9fa;
        transform: translateY(-1px);
    }

    .tab-btn.active {
        background: #074d78;
        color: white;
        /*box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);*/
        transform: translateY(-2px);
    }

    .tab-btn:active {
        transform: translateY(0);
    }

    .tab-btn:focus {
        outline: none;
    }

/* Bölüm Başlıkları */
.department-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    font-family: system-ui,sans-serif;
    padding-left: 12px;
}

.department-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #074d78;
    margin-bottom: 25px;
    padding-bottom: 10px;
    padding-left: 12px;
    border-bottom: 3px solid #074d78;
    display: inline-block;
    grid-column: 1 / -1; /* Başlık tüm sütunları kaplasın */
    font-family: system-ui,sans-serif;
}

/* Laboratuvar Listesi */
.laboratory-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.laboratory-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: system-ui,sans-serif;
}

    .laboratory-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #074d78;
    }

.lab-info {
    flex: 1;
}

.lab-name {
    margin: 0 0 10px 0;
}

.lab-link {
    color: #074d78;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .lab-link:hover {
        color: #074d78;
        text-decoration: underline;
        /*font-family: system-ui,sans-serif;*/
    }

.lab-manager {
    color: #495057;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.lab-department {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
    font-family: system-ui,sans-serif;
}

.lab-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.lab-stat {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    font-family: system-ui,sans-serif;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .unit-detail-container {
        padding: 15px;
    }

    .unit-summary-section {
        padding: 1.5rem;
    }

    .unit-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .unit-name {
        font-size: 1.75rem;
        line-height: 2.1rem;
    }

    .unit-stats {
        justify-content: center;
        gap: 10px;
    }

    .filter-tabs-container {
        margin-bottom: 30px;
        min-height: 50px;
    }

    .filter-tabs {
        padding: 0 15px;
        min-height: 40px;
    }

    /* Tablet'te tek sütun */
    .department-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .laboratory-item {
        flex-direction: column;
        gap: 15px;
    }

    .lab-stats {
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .unit-name {
        font-size: 1.5rem;
    }

    .unit-stats {
        flex-direction: column;
        gap: 15px;
    }

    .filter-tabs {
        gap: 8px;
        padding: 0 10px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Mobilde tek sütun */
    .department-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
