:root {
    --gokhan-dark: #003366;
    --gokhan-azure: #00AEEF;
    --gokhan-bg: #f8f9fa;
    --gokhan-text: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gokhan-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

.navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--gokhan-dark);
}

.navbar-brand {
    color: var(--gokhan-dark) !important;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-link {
    color: var(--gokhan-dark) !important;
    font-weight: 500;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--gokhan-azure) !important;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: calc(100vh - 75px);
    background: var(--gokhan-bg);
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.sidebar-heading {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--gokhan-dark);
    border-bottom: 2px solid var(--gokhan-azure);
    display: flex;
    align-items: center;
    min-height: 50px;
}

#sidebar .list-group-item {
    border: none;
    padding: 12px 20px;
    color: var(--gokhan-dark);
    background: transparent;
    transition: 0.2s;
}

#sidebar .list-group-item:hover,
#sidebar .list-group-item.active {
    background-color: #e9ecef !important;
    color: var(--gokhan-azure);
}

#sidebar .list-group-item.active {
    font-weight: 700;
    border-left: 3px solid var(--gokhan-azure);
}

.tree-branches {
    margin-left: 20px;
    border-left: 1px dashed #ccc;
    padding-left: 15px;
    position: relative;
}

.tree-item {
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
    display: block;
    position: relative;
}

.tree-item.parent {
    color: var(--gokhan-dark);
    font-weight: 600;
}

.tree-item.child {
    font-size: 0.9rem;
    color: #555;
    background: var(--gokhan-bg);
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.tree-item.child::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    width: 15px;
    height: 1px;
    border-top: 1px dashed #ccc;
}

.tree-item.child:hover,
.tree-item.child.active {
    background: #fff;
    border-left-color: var(--gokhan-azure);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.arrow {
    transition: transform 0.3s;
}

.list-group-item[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.text-azure {
    color: var(--gokhan-azure) !important;
}

.border-left-azure {
    border-left: 4px solid var(--gokhan-azure) !important;
}

.btn-primary {
    background: var(--gokhan-dark);
    border-color: var(--gokhan-dark);
}

.btn-primary:hover {
    background: var(--gokhan-azure);
    border-color: var(--gokhan-azure);
}

/* --- SIDEBAR DARALTMA (MINI) MODU --- */
#sidebar.collapsed {
    min-width: 70px !important;
    max-width: 70px !important;
}

#sidebar.collapsed .sidebar-heading span,
#sidebar.collapsed .list-group-item span,
#sidebar.collapsed .arrow {
    display: none !important;
}

#sidebar.collapsed .sub-item-wrapper,
#sidebar.collapsed .collapse {
    display: none !important;
}

#sidebar.collapsed .sidebar-heading {
    justify-content: center !important;
    padding: 15px 0 !important;
}

#sidebar.collapsed .sidebar-heading i {
    margin: 0 !important;
    font-size: 1.3rem;
    cursor: pointer;
}

#sidebar.collapsed .list-group-item {
    justify-content: center !important;
    padding: 15px 0 !important;
}

#sidebar.collapsed .list-group-item i:not(.arrow) {
    margin: 0 !important;
    font-size: 1.2rem;
}

.header-right-wrapper .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999 !important;
    margin-top: 8px !important;
}

.changelog-row {
    cursor: pointer;
    transition: 0.2s;
}

/* --- MOBİL UYUMLULUK (OFFCANVAS SIDEBAR) --- */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        z-index: 1050;
        height: 100vh;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        margin-left: 0;
    }

    #sidebar.collapsed {
        margin-left: -250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }

    #sidebar.collapsed .sidebar-heading span,
    #sidebar.collapsed .list-group-item span,
    #sidebar.collapsed .arrow {
        display: inline-block !important;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    #langDropdown {
        padding: 4px 10px !important;
        font-size: 0.85rem !important;
    }

    #langDropdown i {
        font-size: 0.85rem !important;
        margin-right: 3px !important;
    }
}
