.main-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    background-color: #1c2833;
    color: #ffffff;
    flex: 0 0 15%; /* Sidebar genişliğini %15 olarak ayarlar */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000;
    transition: width 0.3s ease;
}

.main-content {
    flex: 0 0 85%; /* İçerik alanını %85 olarak ayarlar */
    padding: 0px;
    overflow-y: auto;
}

h1 {
    font-weight: normal;
    margin-left: 5px;
}

h2 {
    margin-bottom: 20px;
}

.sidebar-toggle {
    display: none; /* Yalnızca mobilde görünür yapacağız */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 400;
    background-color: #1c2833;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;    
}

.sidebar h2 {
    font-size: 18px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.logo-container {
    width: 100%; /* Logo konteynerinin genişliğini tam olarak ayarla */
    display: flex; /* Flexbox kullanarak içerikleri hizala */
    justify-content: center; /* İçeriği yatay olarak ortala */
    align-items: center; /* İçeriği dikey olarak ortala */
    padding: 20px 0; /* Üstten ve alttan boşluk bırak */
    border-bottom: 1px solid #878484; /* Altına gri bir çizgi ekle */
    margin-bottom: 20px; /* Altında ekstra boşluk bırak */
}

.logo {
    width: 150px;
}

.menu-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.menu-item {
    margin-bottom: 20px;
}

.menu-link {
    color: #ede9e9;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center; /* İkon ve metni dikey olarak ortalar */
    margin: 0 10px; /* Soldan ve sağdan boşluk bırakır */
    justify-content: flex-start; /* Metni sola hizalar */
    transition: background-color 0.3s;
    box-sizing: border-box; /* Padding'i hesaba katmak için kullanılır */
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
    border-radius: 5px; /* Highlight köşelerini yuvarlar */
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 28px;
}

.menu-link i {
    margin-right: 10px;
    font-size: 28px;
}

.menu-link:hover {
    background-color: #7004a3;
    border-radius: 10px;
}

.menu-link.active {
    background-color: #7004a3;
    border-radius: 5px;
    color: #ffffff; /* Yazı rengini beyaz yap */    
}

#whoIsWorkingContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#map-and-table {
    display: flex;
    flex-direction: row;
    width: 100%;
}

#map {
    flex-grow: 2;
    height: 900px; /* Harita yüksekliği */
    width: auto; /* Genişliği dinamik yap */
    border: 1px solid #ccc; /* İsteğe bağlı sınır */
    z-index: 500; /* Daha düşük bir z-index değeri veriyoruz */
    position: relative; /* Harita katmanını pozisyonlandırmak için */
    margin-left: 0px; /* Sidebar ile harita arasındaki mesafeyi ayarlamak için */
}

#activeUsersContainer {
    flex-grow: 1;
    width: auto; /* Genişliği dinamik yap */    
    max-width: none;
    overflow: auto;
}

#registerUserContainer,
#timeMileageContainer,
#groupListContainer {
    display: flex;
    flex-direction: column; /* İçeriği dikey olarak hizala */
    align-items: flex-start;
    margin-left: 0px; /* Sidebar genişliğine göre sağa kaydır */
    padding: 10px; /* İçerik çevresinde boşluk bırak */
    width: 100%; /* İçeriğin genişliğini sidebar ile aynı hizada olacak şekilde ayarlar */
    box-sizing: border-box; /* Padding ve genişlik hesaplamalarını içerir */
}

.content h1 {
    font-size: 22px;
}

.content form {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.content form label {
    margin-right: 10px;
}

.content form input,
.content form button {
    margin-right: 10px;
}

.table-container {
    width: 100%; /* Tablo konteynerinin genişliğini tam olarak ayarla */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 0px;
    margin-left: 0px;
    padding: 0px;
}

.table-container table tr.selected {
    background-color: #e7f4f6; /* Kalıcı mavi renk */
}

table {
    width: 100%;
    border-collapse: separate; /* Hücre sınırlarını ayrı göster */
    border-spacing: 0; /* Hücreler arasındaki boşluğu kaldır */
    border-radius: 5px;
    border: 1px solid #f2efef; /* Tablonun genel çerçevesi */
    overflow: auto;
    font-size: 14px;
    text-align: left;
    margin-left: 5px;
    margin-right: 5px;
}

th {
    background-color: #f2f2f2;
    color: #a39f9f;
    text-align: left;
}

th, td {
    padding: 8px 8px;
    border-bottom: 1px solid #e0dddd; /* Yalnızca yatay çizgiler */
    vertical-align: middle; /* Hücre içeriğinin ortalanması */
    user-select: none;
}

table tbody tr:last-child {
    border-bottom: none; /* Son satırın altına çizgi eklenmez */
}

table tbody tr:hover {
    background-color: #e7f4f6;
}

.map-button {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.custom-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white; /* İsteğe bağlı: Beyaz bir kenarlık */
    box-shadow: 0 0 5px rgba(0,0,0,0.5); /* İsteğe bağlı: Hafif gölge efekti */
    display: inline-block;
    vertical-align: middle; /* Metinle hizalama */
    margin-right: 10px; /* Fotoğraf ile isim arasında boşluk */
}

#dateForm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 60px;
    max-width: 220px; /* Form alanının genişliğini küçülttüm */
}

#dateForm label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

#dateForm input[type="date"] {
    width: 100%;
    padding: 8px 12px; /* İçerik alanını biraz küçülttüm */
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    color: #495057;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#dateForm input[type="date"]:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.date-input-container {
    position: relative;
    max-width: 300px;
    margin-bottom: 20px; /* İsteğe bağlı: Altında boşluk bırakır */
    margin-left: 0px;
}

.date-input-container label {
    position: absolute;
    top: -10px; /* Label'in yukarıya taşınması için */
    left: 10px; /* Label'i kutu içine çekmek için */
    background-color: #fff; /* Arka plan rengini beyaz yaparak kutu ile karışmasını önler */
    padding: 0 5px; /* Label'in etrafına hafif bir dolgu ekler */
    font-size: 12px; /* Label'in boyutunu küçültür */
    color: #666; /* Label'in rengini gri yapar */
    pointer-events: none; /* Label'in tıklanabilir olmasını engeller */
}

.date-input-container input {
    width: 100%;
    padding: 12px;
    padding-left: 10px; /* Tarih kutusunun içinde padding ayarı */
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#pagination-container {
    display: flex;
    justify-content: flex-end; /* Sağ tarafa hizalar */
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

#pagination-container select, 
#pagination-container button {
    margin-left: 5px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px; /* Boyutunu artır */
    color: #007bff; /* Mavi renk */
}

#pagination-container button:hover {
    color: #7b89e8; /* Hover sırasında daha koyu mavi */
}

#pagination-container button:disabled {
    color: #ccc; /* Disabled durumda gri renk */
    cursor: not-allowed;
}

.selected-row {
    background-color: #f0f8ff; /* Hafif bir arka plan rengi de ekleyebilirsiniz */
}

.selected-icon {
    display: inline-block;
    margin-right: 10px;
    color: blue;
}

.edit-icon {
    cursor: pointer;
    font-size: 18px;
    color: #007bff;
}

.edit-icon:hover {
    color: #0056b3;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.active-status {
    background-color: rgb(39, 245, 7);
}

.inactive-status {
    background-color: rgb(252, 4, 4);
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
    margin-left: 0px;
}

#searchInputWhoIsWorking,
#searchInputTimeMileage,
#searchInputRegisterUser,
#searchInputGroupList {
    width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    margin-left: 5px;
    margin-right: 5px;
}

#searchInput::placeholder {
    color: #aaa;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 12px;
    text-align: center;
}
  
.status-badge.basladi {
    background-color: #28a745; /* Green */
}
  
.status-badge.bitti {
    background-color: #dc3545; /* Red */
}
 
/* When hovering over the gutter (divider)*/
.gutter:hover {
    background-color: #ccc;
    /*cursor: col-resize;*/
}
  
.info-button {
    background-color: #f0f0f0; /* Light background */
    color: #007bff; /* Blue text color */
    border: none;
    border-radius: 30%; /* Round shape */
    width: 20px; /* Width of the button */
    height: 15px; /* Height of the button */
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Icon size */
}

.info-button i {
    font-style: normal; /* Ensure it's a regular letter 'i' */
    font-weight: bold; /* Bold for better visibility */
    font-size: 14px; /* Size of the 'i' */
    color: #007bff; /* Blue color */
}

#updateUserModal {
    display: none;  /* Modal başlangıçta gizli */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Siyah, yarı saydam bir arka plan */
}

/* Modal içerik stili */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Form düzenleme */
#userForm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px; /* Formun genel genişliğini belirleyin */
    margin: 0 auto;
}

/* Form grup düzenleme */
.form-group {
    display:flex;
    flex-direction:column;
    margin-bottom: 10px;
    width: 100%;
    text-align: left; /* Etiketleri sola hizalar */
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase; /* Metni büyük harf yapar */
    font-size: 12px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"] {
    flex: 1; /* Giriş alanlarının kalan alanı kaplamasını sağlar */
    width: 100%; /* Giriş kutusunun tam genişlikte olması */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: left; /* Metni sola hizalar */
    background-color: #f9f9f9; /* Arka plan rengini hafif gri yapar */
    font-size: 14px;
}

/* Form buttons sınıfı için özel düzenleme */
.form-buttons button {
    margin-right: 0 !important; /* Tüm diğer margin-right kurallarını geçersiz kıl */
    flex: 0 1 auto; /* Butonların esnekliğini sınırlamak için */
    padding: 10px 15px; /* Butonların iç dolgusunu ayarlamak */
    width: auto; /* Buton genişliğini otomatik ayarla */
    white-space: nowrap; /* Metinlerin buton içinde tek satırda kalmasını sağlar */
    text-align: center; /* Metni ortala */
}

.form-buttons {
    display: flex;
    /*justify-content: space-between;*/ /* Butonları yatayda yayma */
    justify-content: flex-end; /* Butonları sağa hizala */
    gap: 2px;
    margin-top: 20px; /* Üstten biraz boşluk bırakma */
}

input::placeholder {
    color: #999;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #007bff;
    background-color: #fff; /* Odaklandığında arka plan rengini beyaz yapar */
    outline: none; /* Varsayılan odak çevresini kaldırır */
}

.modal-btn {
    padding: 10px 15px;
    background-color: #59dfdc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    margin-left: 0; /* Soldaki boşluğu kaldır */
    flex: 0 1 auto; /* Genişliği kontrol etmek için */
    white-space: nowrap; /* Metni tek satırda tutmak için */
}

.modal-btn.btn-danger {
    background-color: #f44336;
}

.modal-btn.btn-danger:hover {
    background-color: #e31e10;
}

.modal-btn:hover {
    background-color: #45a049;
}

/* Close (X) button styling */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap; /* Elemanların sarılmasını sağlar */
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-left: 0px;
    width: 100%; /* Ekrana göre tam genişlik almasını sağlar */
    align-items: flex-end; /* Butonları sağa hizalar */
}

.action-buttons .modal-btn {
    margin-left: 10px;
}

.login-form {
    background-color: black;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    width: 300px;
    margin: 50px auto;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px -10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-form button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #218838;
}

input[type="text"], input[type="password"] {
    font-size: 16px;
}



@media only screen and (max-width: 768px) {
    .main-content {
        flex: 0 0 100%;        
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 240px;
        transform: translateX(-100%); /* Başlangıçta ekran dışında */
    }

    .sidebar.open {
        transform: translateX(0); /* Açıldığında ekranda görünür */
        display: flex;
        z-index: 1001; /* Sidebar'ı en öne getirin */
    }

    .sidebar-toggle {
        position: fixed;
        top: 1px;
        left: 50%;
        z-index: 1001;
        background-color: #2c6aa3;
        color: white;
        border: none;
        font-size: 10px;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px; /* Köşeleri yuvarlatmak için */
        transform: translateX(-50%); /* Butonu yatay olarak tam ortalamak için */
        display: none; /* Varsayılan olarak gizle */
    }

    .menu-link {
        font-size: 14px;
        padding: 10px;
        text-align: center;
    }

    #whoIsWorkingContainer {
        flex-direction: column; /* Mobilde harita ve tabloyu dikey yerleştir */
        align-items: center;
    }

    #activeUsersContainer {
        margin-left: 0;
        max-width: 100%;
        margin-top: 20px; /* Haritadan sonra bir boşluk ekle */
    }
    
    #registerUserContainer,
    #timeMileageContainer,
    #groupListContainer {
        margin-left: 0px; 
        margin-right: 0px; 
        margin-bottom: 0px;
        margin-top: 32px;                       
        align-items: center;      
    }
    #map-and-table {        
        flex-direction: column; /* Harita ve tabloyu dikey hizala */
    }

    #map {
        height: 400px; /* Harita yüksekliğini mobil için küçült */
        margin-left: 0; /* Sidebar'ı dikkate alarak kenar boşluğunu kaldır */
        width: 100%; /* Genişliği tam ekran yap */
        flex-grow: 1; /* Haritanın kapsayıcı alana göre büyümesini sağlar */
        min-height: 300px; /* En az 300px yüksekliğinde olmasını sağla */
    }   
}