body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 60px; /* Navbar'ın boyutuna göre ayarlayın */
  /* background-color: #f4f4f9; */
  background: linear-gradient(to right, #343a40, #212529);
}

  table, select {
    margin: 20px 0;
  }
  table {
    width: 100%;
    
  }
  table, th, td {
    border: 1px solid #ddd;
  }
  th, td {
    padding: 10px;
    text-align: left; /* Hücreler sola hizalandı */
  }
  th {
    
    color: white;
  }

  h1{
    text-align: center;
  }

  .combo-container {
    display: flex;
    justify-content: center; /* Ortalar */
    gap: 20px; /* Aralarındaki boşluğu artırır */
    margin-bottom: 30px;
    align-items: center; /* Dikey hizalama */
    margin-top: 80px;   
  }
  .combo-box {
    display: inline-block;
    margin-right: 20px; /* ComboBox'lar arasında boşluk */
  }

  .form-select {
    width: 300px; /* Boyut sabit kaldı */
  }
 h3{
  text-align: center;
 }  
.combo-box label {
  display: block;
  margin-bottom: 5px; /* Combobox etiketine biraz boşluk */
}
.combo-container .form-label {
  margin-right: 10px; /* Combobox etiketine boşluk ekler */
}
#controlButton {
  margin-left: 10px; /* Combobox ile buton arasındaki boşluk */
}
label{
  font-size: 27px;
}
.navbar {
  border-bottom: 2px solid #ff7a00; /* Turuncu bir alt çizgi */
  background: linear-gradient(to right, #343a40, #212529);
  padding: 10px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-sizing: border-box; /* Border'lar ve padding hesaplamasına dahil edilir */
}
.navbar-brand {
  margin-left: 0; /* Varsayılan boşluğu kaldır */
  padding-left: 15px; /* Sol boşluk (isteğe bağlı) */
}
.navbar-nav .nav-link:hover {
  color: #00d4ff !important; /* Hover durumunda mavi renk */
  font-weight: bold;
}
.navbar-nav .active {
  color: #ff7a00 !important; /* Aktif menü rengi turuncu */
  font-weight: bold;
}
.navbar-nav .nav-link {
  margin: 0 15px; /* Menü öğeleri arasında boşluk */
  font-size: 16px; /* Yazı boyutu */
}
.custom-swal-popup {
  border-radius: 30px !important; /* Yuvarlak kenarlar */
  box-shadow: 0 0 15px black !important; /* Hafif parlak gölge */
  font-family: "Arial", sans-serif !important; /* Modern font */
}

/* Arama kutusu konteyneri */
.search-container {
  display: flex;
  justify-content: center;  /* Yatayda ortala */
  align-items: center;  /* Dikeyde ortala */
  background-color: transparent;
  padding: 15px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(156, 149, 149, 0.5);
  width: auto;
  margin-top:-20px;
}

/* Arama kutusu */
#deviceSearch {
  padding: 8px 12px;
  border: 1px solid #e56a00;;
  border-radius: 6px;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  margin-right: 8px; /* Butona biraz boşluk bırakmak için */
  width: 500px;  /* Sabit genişlik */
}

#deviceSearch::placeholder {
  color: #aaa;  /* Soluk placeholder rengi */
}

/* Ara butonu */
/* Ara butonu */
#searchButton {
  padding: 8px 18px;  /* Yeterince boşluk, konforlu */
  border: 1px solid #888;  /* Soft border */
  border-radius: 30px;  /* Yuvarlak köşeler */
  background-color: #007bff;  /* Soft mavi renk */
  color: #fff;  /* Beyaz yazı */
  font-size: 14px;  /* Orta büyüklükte font */
  font-weight: 500;  /* Orta kalınlıkta font */
  text-transform: uppercase;  /* Yazıyı küçük harflerden büyük harflere çevirdik */
  cursor: pointer;
  transition: all 0.3s ease;  /* Yumuşak geçiş */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Hafif gölge */
  outline: none;  /* Tıklama kenarlığı kaldırıldı */
}

/* Hover efekti */
#searchButton:hover {
  background-color: #0056b3;  /* Hover'da mavi tonunda daha koyu bir renk */
  transform: translateY(-2px);  /* Hafif yukarı kaydırma */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);  /* Hover'da daha derin gölge */
}

/* Focus (tıklama) efekti */
#searchButton:focus {
  outline: none;  /* Çevresindeki outline'ı kaldır */
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.7);  /* Focus halinde parlak mavi gölge */
}
/* Duyarlı Tasarım */
@media screen and (max-width: 768px) {
  .search-container {
    width: 100%;  /* Mobilde genişlik %100 */
  }  
  #searchButton {
    padding: 8px 14px;  /* Mobilde biraz daha küçük padding */
    font-size: 13px;  /* Yazı tipi küçük mobilde */
  }
}
/* Temizle butonu */
#clearSearch {
  padding: 8px 18px;  /* Rahat bir tıklama alanı */
  border: none;  /* Kenarlıkları kaldırdık */
  border-radius: 30px;  /* Yuvarlak köşeler */
  background: #e56a00;  /* Gradient renk geçişi (Hex renk) */
  color: #fff;  /* Beyaz yazı */
  font-size: 14px;  /* Orta büyüklükte font */
  font-weight: 600;  /* Kalın yazı */

  cursor: pointer;
  transition: all 0.3s ease;  /* Yumuşak geçiş efekti */
  outline: none;  /* Focus kenarlıklarını kaldır */
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);  /* Hafif gölge */
}
/* Hover efekti */
#clearSearch:hover {
  background: #fd8e2e;  /* Hover'da renk geçişi */
  transform: translateY(-0.5px);  /* Hover'da yukarı kayma */
  box-shadow: 2px 8px 12px rgba(0, 0, 0, 0.15);  /* Hover'da daha derin gölge */
}
/* Focus (tıklama) efekti */
#clearSearch:focus {
  outline: none;  /* Focusken outline'ı kaldır */
  box-shadow: 0 0 8px #007bff;  /* Focus'da parlak mavi gölge */
}
/* Duyarlı Tasarım */
@media screen and (max-width: 768px) {
  #clearSearch {
    padding: 6px 14px;  /* Mobilde biraz daha küçük padding */
    font-size: 13px;  /* Yazı tipi mobilde küçük */
  }
}
/* Cihaz listesi*/
th, td {
  vertical-align: top; /* Hücre içeriğini üst hizaya al */  
}
/* Cihaz seçimi dropdown listesi */
#deviceSelect {
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #fff;
  margin-top: 10px;
}
th, td {
  vertical-align: top; /* Hücre içeriğini üst hizaya al */
}
.device-list-header {
  display: flex;
  justify-content: center;  
  height: auto; 
  width: auto;
}
.device-list-body {
  max-height: 56vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/* Scrollbar'ı modernleştirme */
.device-list-body::-webkit-scrollbar {
  width: 8px; /* Scrollbar genişliği */
}
.device-list-body::-webkit-scrollbar-thumb {
  background-color: #888; /* Thumb rengini belirle */
  border-radius: 4px; /* Yuvarlatılmış kenarlar */
}
.device-list-body::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Hover efekti */
}
.device-list-body::-webkit-scrollbar-track {
  background: #f1f1f1; /* Track rengini belirle */
  border-radius: 4px; /* Track kenarlarını yuvarlat */
}
/* Cihazları animasyonlu olarak eklemek için */
.device-item {
  background: #f0f0f0;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  transition: transform 0.3s ease-out, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateX(-50px);
}
.device-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.device-list-container {
  height: 40px;
  background: #1e1e1e;
  padding: 10px;
  border-radius: 8px;
}
.icon {
  width: 16px;
  height: 16px;
}
/* Görsellerin ve ikonların daha sakin ve belirgin şekilde gösterilmesi */
.device-card {
  cursor:pointer;
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}
.device-card img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}
.device-card .alert-content {
  display: flex;
  align-items: center;
  gap: 15px;
}
/* Hata durumu görselleri */
.device-card.alert-warning {
  border-left: 6px solid #ffc107;
}
.device-card.alert-danger {
  border-left: 6px solid #dc3545;
}
.device-card.alert-success {
  border-left: 6px solid #28a745;
}
/* Daha sade simgeler */
.device-card .alert-img {
  width: 25px;
  height: 25px;
}
/* InfoWindow içeriğinin gereksiz boşluklarını kaldır */
/* Google Maps InfoWindow'u küçült ve gereksiz boşlukları kaldır */
.gm-style-iw {
  max-width: 180px !important;  /* Genişliği küçült */
  min-width: 150px !important;
  padding: 0 !important;
  border-radius: 8px !important; /* Köşeleri yumuşat */
  background: transparent !important; /* Arka planı şeffaf yap */
  box-shadow: none !important; /* Gölgeyi kaldır */
}
/* İç içe geçmiş div'lerin paddinglerini kaldır */
.gm-style-iw-d {
  padding: 0 !important;
  margin: 0 !important;
  max-height: 100px !important; /* Çok uzun olmaması için */
  overflow: hidden !important;
}
/* Ok işaretini (üçgen) kaldır */
.gm-style div[style*="overflow: hidden"]::after {
  display: none !important;
}
/* Varsayılan çarpı butonunu gizle */
.gm-ui-hover-effect {
  display: none !important;
}
.filter-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
.filter-buttons button {
  padding: 1px 1px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}
.filter-buttons button:hover {
  background-color: #0056b3;
}
/* Masaüstü görünümü (mevcut yapı) */
#tblScreen th {
  vertical-align: top;
}
/* Mobil görünüm */
@media (max-width: 768px) {
  #tblScreen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
  }
  #tblScreen th {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }
  #map {
    height: 80vh !important;
    margin-top: 0 !important;
  }
  /* Cihaz listesi için açılır panel */
  .device-list-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 60vh;
    background: #2c2c2c;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    padding: 20px;
    overflow-y: auto;
  }
  .device-list-container.active {
    bottom: 0;
  }
  /* Panel açma/kapama düğmesi */
  .device-list-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff7a00;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }
  /* Panel üstündeki tutma çubuğu */
  .drag-handle {
    width: 50px;
    height: 4px;
    background: #666;
    border-radius: 2px;
    margin: -10px auto 15px;
  } 
  .device-count {
    font-size: 12px; /* Daha küçük font */
    padding: 2px 5px; /* Daha küçük iç boşluk */
    width: 20px; /* Küçük bir alan */
    height: 30px;
    line-height: 20px;
    margin-top: 20%;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ff7a00;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}


/* Cihaz Uyarıları Başlığı */
.device-list-container h5 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  border-bottom: 2px solid #ddd; /* İnce alt çizgi */
  margin-bottom: 15px;
}

/* Cihaz Sayısı - Sağa Hizalanmış */
.device-count {
  display: block;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 20px;
  background: #aa1919;
  color: white;
  width: fit-content;
  margin-left: auto;  /* Sola boşluk bırakır, sağa hizalar */
  margin-right: 0;    /* Sağ boşluğu sıfırlar */
}
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
#deviceSearch {
  padding: 8px;
  font-size: 16px;
}
#clearSearch {
  margin-left: 10px;
  padding: 8px 12px;
  font-size: 16px;
}
.device-count {
  position: absolute;
  right: 0;
  font-size: 16px;
  padding: 8px;
}

/* Ana Container Boyutu */
.device-list-container { 
  padding: 1px; /* İç boşluğu kaldır */
}
/* Cihaz Kartları */
.device-card {
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgb(196, 184, 184);
  border-radius: 6px; /* Köşeleri biraz daha yuvarla */
  margin-bottom: 8px; /* Kartlar arası boşluk */
  padding: 4px; /* İç boşluk */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Daha hafif gölge */
  max-height: 100px;
}
.device-card:hover {
  transform: scale(1.01); /* Daha hafif bir büyütme */
  background: #252525;
}
/* Alert İçeriği */
.alert-content {
  display: flex;
  align-items: center;
  gap: 8px; /* Elemanlar arası boşluk */
  max-height: 90px;
}
/* Görsel Küçültme */
.alert-img {
  width: 80px !important; /* Görsel boyutu */
  height: 80px !important;
  border-radius: 8px; /* Köşe yuvarlama */
  object-fit: cover;
}

/* Metin Alanları */
.device-info h6 {
  font-size: 19px !important; /* Başlık boyutu */
  color: #ff7a00;
  margin: 0;
}
.device-info p {
  font-size: 12px !important; /* Açıklama boyutu */
  color: #bbb;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Maksimum genişlik */
}
.device-info small {
  font-size: 15px !important; /* Tarih boyutu */
  color: #666;
}
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


  /* Filtre konteynırı stil düzenlemeleri */
  .filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
    background: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 12px;
    max-height: 150px;
    overflow-y: auto;     
  }
  .filter-container label {
    min-width: 150px;
    display: flex;   
    gap: 4px;
    font-size: 13px;
    color: #ddd;
    padding: 4px 8px;
    background: #383838;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.5s;
  }
  .filter-container label:hover {
    background: #454545;
  }
  .filter-container input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;   
  }
  /* Scrollbar stil düzenlemesi (isteğe bağlı) */
  .filter-container::-webkit-scrollbar {
    width: 6px;
  }
  .filter-container::-webkit-scrollbar-track {
    background: #2a2a2a;
  }
  .filter-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
  }  




  .filter-container input[type="checkbox"] {
    appearance: none; /* Varsayılan stil kaldırılır */
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.filter-container input[type="checkbox"]:checked {
    background-color: #ff7a00; /* Seçildiğinde turuncu olacak */
    border-color: #ff7a00;
}

.filter-container input[type="checkbox"]::after {
    content: '✔'; /* Tik işareti */
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; /* Varsayılan olarak görünmez */
}

.filter-container input[type="checkbox"]:checked::after {
    opacity: 1; /* Seçildiğinde görünür olacak */
}
.sort-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.sort-btn {
  padding: 5px 10px;
  background: #ff7a00;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}
.sort-btn:hover {
  background: #b36c1b;
}
.sort-btn.active {
  background: #ff7a00;
}
.sort-btn .fa-sort {
  font-size: 20px;
  opacity: 2;
  color: #ececec;
}
.sort-btn.active .fa-sort {
  opacity: 1;
}
.sort-btn.asc .fa-sort:before {
  content: "\f0de"; /* Yukarı ok */
}
.sort-btn.desc .fa-sort:before {
  content: "\f0dd"; /* Aşağı ok */
}





.gm-style-iw {
  background: rgba(30, 30, 30, 0.95) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  border: none;
}

.gm-style-iw-c {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.gm-style-iw-d {
  background: transparent !important;
  overflow: visible !important;
  max-width: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.gm-style-iw-t::after {
  background: none !important;
  box-shadow: none !important;
  display: none !important;
}
.gm-style > div > div {
  box-shadow: none !important;
}


/* Özel InfoWindow Stili */
.info-window-container {
  position: relative;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 6px;
  padding: 8px 12px;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: none;
  max-width: 180px;
}

.close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  z-index: 1000;
}

