﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bg-gradientField {
    background: linear-gradient(135deg, #4caf50 25%, #3e8e41 25%, #3e8e41 50%, #4caf50 50%, #4caf50 75%, #3e8e41 75%);
}

footer {
    background: linear-gradient(135deg, #4caf50 25%, #3e8e41 25%, #3e8e41 50%, #4caf50 50%, #4caf50 75%, #3e8e41 75%);
}

    footer .copyright {
        background: none !important;
    }

.filter-bar {
    position: fixed;
    border-radius: 1rem;
    left: 10px;
    top: 95px;
    bottom: 60px;
    width: 250px;
    padding: 6px 0;
    z-index: 99;
    transition: all 0.5s ease;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
    /* Kaydırma aktif */
    overflow-y: auto;
    max-height: calc(100vh - 155px); /* 95px üst + 60px alt boşluk */
}

.sidebar {
    position: fixed;
    border-radius: 1rem;
    right: 10px;
    top: 95px;
    bottom: 60px;
    width: 78px;
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #4caf50 25%, #3e8e41 25%, #3e8e41 50%, #4caf50 50%, #4caf50 75%, #3e8e41 75%);
    /* Kaydırma aktif */
    overflow-y: auto;
    max-height: calc(100vh - 155px);
}

    .sidebar.open {
        width: 250px;
    }

    .sidebar .logo-details {
        height: 60px;
        display: flex;
        align-items: center;
        position: relative;
    }

        .sidebar .logo-details .icon,
        .sidebar .logo-details .logo_name {
            opacity: 0;
            transition: all 0.5s ease;
        }

        .sidebar .logo-details .logo_name {
            color: #fff;
            font-size: 20px;
            font-weight: 600;
        }

    .sidebar.open .logo-details .icon,
    .sidebar.open .logo-details .logo_name {
        opacity: 1;
    }

    .sidebar .logo-details #-hamburger-menu {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-size: 23px;
        text-align: center;
        cursor: pointer;
        transition: all 0.5s ease;
    }

    .sidebar.open .logo-details #-hamburger-menu {
        text-align: right;
    }

    .sidebar i {
        color: #fff;
        height: 60px;
        min-width: 50px;
        font-size: 28px;
        text-align: center;
        line-height: 60px;
    }

    .sidebar .nav-list {
        margin-top: 0;
        /* Link listesi kaydırılabilir */
        max-height: calc(100% - 80px); /* Profil alanı için boşluk */
        overflow-y: auto;
        padding-right: 8px;
    }

    .sidebar li {
        position: relative;
        margin: 14px 0;
        list-style: none;
    }

        .sidebar li .tooltip {
            position: absolute;
            top: -20px;
            right: calc(100% + 15px);
            z-index: 3;
            background: #fff;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 15px;
            font-weight: 400;
            opacity: 0;
            white-space: nowrap;
            pointer-events: none;
            transition: 0s;
        }

        .sidebar li:hover .tooltip {
            opacity: 1;
            pointer-events: auto;
            transition: all 0.4s ease;
            top: 50%;
            transform: translateY(-50%);
        }

    .sidebar.open li .tooltip {
        display: none;
    }

    .sidebar input {
        font-size: 15px;
        color: #FFF;
        font-weight: 400;
        outline: none;
        height: 50px;
        width: 50px;
        border: none;
        border-radius: 12px;
        transition: all 0.5s ease;
        background: #388E3C;
    }

    .sidebar.open input {
        padding: 0 20px 0 50px;
        width: 100%;
    }

    .sidebar .bx-search {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-size: 22px;
        background: #388E3C;
        color: #FFF;
    }

        .sidebar .bx-search:hover {
            background: #FFF;
            color: #4caf50;
        }

    .sidebar.open .bx-search:hover {
        background: #388E3C;
        color: #FFF;
    }

    .sidebar li a {
        display: flex;
        height: 30px;
        width: 100%;
        border-radius: 12px;
        align-items: center;
        text-decoration: none;
        transition: all 0.4s ease;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }

        .sidebar li a:hover {
            background: #FFF;
        }

        .sidebar li a .links_name {
            color: #fff;
            font-size: 15px;
            font-weight: 400;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: 0.4s;
        }

    .sidebar.open li a .links_name {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar li a:hover .links_name,
    .sidebar li a:hover i {
        transition: all 0.5s ease;
        color: #4caf50;
    }

    .sidebar li i {
        height: 50px;
        line-height: 50px;
        font-size: 18px;
        border-radius: 12px;
    }

    .sidebar li.profile {
        margin: 0 !important;
        position: absolute;
        bottom: 0;
        left:0;
        width: 100%;
        height: 65px;
        /* sidebar padding'tan etkilenmesin */
        padding: 10px 0;
        background: #388E3C;
        transition: all 0.5s ease;
        overflow: hidden;
    }

    .sidebar.open li.profile {
        width: 250px;
    }

    .sidebar li .profile-details {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .sidebar li img,
    .sidebar-image {
        height: 45px;
        width: 45px;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 10px;
    }

    .sidebar li.profile .name,
    .sidebar li.profile .job {
        font-size: 15px;
        font-weight: 400;
        color: #fff;
        white-space: nowrap;
    }

    .sidebar li.profile .job {
        font-size: 12px;
    }

    .sidebar .profile #minimizeSidebar {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background: #388E3C;
        width: 100%;
        height: 60px;
        line-height: 60px;
        border-radius: 0;
        transition: all 0.5s ease;
    }

    .sidebar.open .profile #minimizeSidebar {
        width: 50px;
        background: none;
    }

.home-section {
    display: none !important;
}

.home-section {
    position: relative;
    background: #E4E9F7;
    min-height: 100vh;
    top: 0;
    right: 0;
    width: calc(100% - 0);
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open ~ .home-section {
    right: 0;
    width: calc(100% - 0);
}

.home-section .text {
    display: inline-block;
    color: #4caf50;
    font-size: 25px;
    font-weight: 500;
    margin: 18px;
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

@media (max-width: 772px) {
     
    .sidebar {
        top: 95px !important;
        bottom: 95px !important;
    }

    .filter-bar {
        top: 95px !important;
        left: unset !important;
        right: 10px !important;
        bottom: 95px !important;
    }
}
