* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
}

.navbar {
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed; /* Navbar sabit kalsın */
    top: 0; /* Ekranın en üstünde yer alır */
    width: 100%; /* Genişlik ekran boyunca olur */
    z-index: 10; /* Diğer içeriklerin üzerine çıkar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Hafif bir gölge ekleyerek görünürlüğü artır */
}


.navbar .logo {
    width: 250px;
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.navbar .menu-btn {
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    outline: none;
    padding: 5px;
    margin-right: 15px;
    color: white;
}

.navbar .buttons {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    gap: 20px; /* Butonlar arasındaki boşluk */
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* İkon ve yazı arasındaki boşluk */
}

.navbar .buttons button {
    width: 60px;
    height: 60px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.navbar .buttons button:hover svg,
.navbar .buttons button:hover p {
    fill: #00bcd4; /* Hover'da turkuaz renk */
    color: #00bcd4; /* Yazı rengi hover olduğunda değişsin */
}

.navbar .buttons button svg {
    margin-bottom: -10px;
    width: 36px;
    height: 36px;
    fill: #e8eaed;
    transition: fill 0.3s ease;
}

.button-container a {
    text-decoration: none; /* Linkin alt çizgisini kaldır */
}

.button-container a:hover {
    text-decoration: none; /* Hover'da da alt çizgiyi kaldır */
}

.button-container p {
    margin-top: 0;
    font-size: 14px;
    color: white;
    text-align: center;
    transition: color 0.3s ease;
    text-decoration: none !important; /* Alt çizgiyi kesinlikle kaldır */
}

.button-container p:hover {
    text-decoration: none !important; /* Hover'da da alt çizgi eklenmesin */
}




.navbar .profile {
    width: 250px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar .profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.navbar .profile span {
    font-size: 14px; /* Yazıyı küçült */
    margin-right: 10px; /* Sağ tarafına 10px boşluk */
    color: #fff; /* Yazı rengi (isteğe bağlı) */
}


.sidebar {
    width: 200px;
    height: calc(100vh - 50px);
    background-color: black;
    color: white;
    position: fixed;
    top: 50px;
    left: -200px;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

 .side-nav-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f5f5f5;
    padding-bottom: 5px;
}

.side-nav-item {
    display: block;
    text-decoration: none;
    color: #bbb;
    font-size: 16px;
    margin: 8px 0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.side-nav-item:hover {
    background-color: #353740;
    color: white;
}

.side-nav-item.active {
    background-color: #353740;
    color: white;
}





.side-content {
    height: calc(100vh - 150px);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Menü itemleri */
.side-nav-item {
    display: flex;
    align-items: center;
    gap: 10px; /* İkon ve yazı arasındaki boşluk */
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.side-nav-item svg {
    width: 24px;
    height: 24px;
    fill: #e8eaed;
    transition: fill 0.3s ease;
}

/* Hover efekti */
.side-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.side-nav-item:hover svg {
    fill: #00bcd4; /* Hover'da ikon rengi değişsin */
}

.side-nav-item:hover .side-nav-item-name {
    color: #00bcd4; /* Hover'da yazı rengi değişsin */
}

/* Aktif menü öğesi */
.side-nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.side-nav-item.active svg {
    fill: #00bcd4;
}

.side-nav-item.active .side-nav-item-name {
    color: #00bcd4;
}

/* Scrollbar özelleştirme */
.side-content::-webkit-scrollbar {
    width: 2px;
}

.side-content::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 5px;
}

.side-content::-webkit-scrollbar-thumb:hover {
    background-color: darkgrey;
}

.side-content::-webkit-scrollbar-track {
    background-color: transparent;
}

        

.sidebar-footer {
    height: 100px;
    background-color: #000;
    color: #bbb;
    text-align: left;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-top: 2px solid #666;
}


.sidebar-footer .links a {
    text-align: left;
    color: #bbb;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sidebar-footer .links a:hover {
    color: white;
}

.sidebar-footer .links .help {
    font-weight: bold;
    color: #ccc;
}

.sidebar-footer .links .help:hover {
    color: white;
}


.content {
    top:50px;
    position: relative; 
    background-color: #202123;
    color: white;
    padding: 20px;
    min-height: calc(100vh - 56px);
    border-radius: 10px;
    margin: 2px 6px 6px 6px; 
    transition: margin-left 0.3s ease;
}

.content.shifted {
    margin-left: 200px;
}

/* 8. Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid var(--color-loader);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

#loader-text {
    margin-top: 15px;
    color: var(--color-loader-text);
    font-size: 1em;
    text-align: center;
}

/* 9. Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

@media (max-width: 768px) { /* 768px mobil cihazlar için yaygın bir sınırdır */
        .navbar .buttons {
            display: none;
        }
    
        .sidebar {
            width: 100%; /* Genişlik sabit 200px */
            left: -100%; /* Kapalı durumda gizlenir */
            transition: none; /* Animasyon iptal */
            z-index: 1; /* Menü üstte görünmesi için */
        }
    
        .sidebar.active {
            left: 0; /* Açıldığında direkt görünür */
        }
    
        .content {
            transition: none; /* Animasyon iptal */
            margin: 2px 0px 0px 0px; 
            border-radius: 10px;
        }
        
        .content.shifted {
            margin-left: 0px;
        }
}


/* --- Popup Styles --- */
.popup-overlay {
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Make sure it's on top */
    opacity: 0; /* Start hidden */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.popup-overlay.visible {
     opacity: 1;
     visibility: visible;
     transition: opacity 0.3s ease;
}

.popup-content {
    background-color: #333; /* Dark background for popup box */
    color: #eee; /* Light text */
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Max width */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    position: relative;
    text-align: center;
    transform: scale(0.9); /* Start slightly small */
    transition: transform 0.3s ease;
}

.popup-overlay.visible .popup-content {
    transform: scale(1); /* Scale to full size when visible */
}


.popup-content h2 {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.popup-content p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #ccc;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
 .popup-close-btn:hover {
     color: #eee;
 }

.popup-accept-btn {
    padding: 10px 25px;
    background-color: #007bff; /* Blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.popup-accept-btn:hover {
    background-color: #0056b3; /* Darker blue */
}