body {
  margin: 0;
  padding: 3.5%;

  min-height: 100vh;


  background-image:
    linear-gradient(rgba(178, 184, 193, 0.3), rgba(15, 23, 42, 0.95)),
    url('RVMbg.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

}



#ana-panel {
  display: none;
  width: 100%;

  height: 100%;

  position: relative;
  margin: 0;
  padding: 0;
}


.harita-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  cursor: grab;
  background: transparent;
}


.svg-turkiye-haritasi {
  width: 100%;
  max-width: auto;
  margin: auto;
  transform-origin: 0 0 !important;

  transition: transform 0.1s;
  user-select: none;
}

.svg-turkiye-haritasi svg {
  width: 100%;
  height: auto;
}

.svg-turkiye-haritasi path {
  fill: rgba(30, 56, 59, 0.7);
  stroke: #4A5568;
  stroke-width: 1.2px;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.svg-turkiye-haritasi path:hover {
  fill: #CBD5E1;
  stroke: #1E293B;
}


.il-isimleri {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  display: none;
  pointer-events: none;
  font-size: 17px;
  z-index: 999;
}

.svg-turkiye-haritasi text {
  fill: white;
  font-size: 7px;
  text-anchor: middle;
  alignment-baseline: middle;
  pointer-events: none;
  user-select: none;
  paint-order: stroke;
  stroke: black;
  stroke-width: 2px;
}


.harita-baslik-konteyner {
  position: absolute;
  top: -7%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  pointer-events: none;


  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ana-baslik {
  font-size: 22px;
  color: #0f1b55;
  font-weight: 700;
  margin: 0 0 2px 0;
  letter-spacing: 1px;
}

.alt-baslik {
  font-size: 20px;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
  letter-spacing: 1.5px;
}


#login-konteyner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.login-kart {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
}

.login-kart h2 {
  margin: 0 0 8px 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
}

.login-kart p {
  margin: 0 0 24px 0;
  color: #64748b;
  font-size: 14px;
}

.input-grup {
  text-align: left;
  margin-bottom: 18px;
}

.input-grup label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.input-grup input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f8fafc;
  color: #1e293b;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.input-grup input:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-buton {
  width: 100%;
  padding: 12px;
  background-color: #1e293b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.login-buton:hover {
  background-color: #0f172a;
}

#hata-mesaji {
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 15px;
  text-align: left;
  background-color: #fef2f2;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #fca5a5;
}




.ust-menu-bar {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 50;
}

.mod-btn {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mod-btn:hover {
  background: rgba(30, 41, 59, 0.9);
}

.mod-btn.aktif {
  background: #1e3a8a;
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.mod-btn[data-mod="bakim"].aktif {
  background: #b45309;
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.mod-btn[data-mod="kurulum"].aktif {
  background: #166534;
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}


.sag-panel {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 320px;
  height: calc(100vh - 40px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  color: white;
  font-family: 'Inter', sans-serif;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.panel-ust {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.panel-ust h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e2e8f0;
}

.panel-icerik {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
}

.il-detay-baslik {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cihaz-kart {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  border-left: 4px solid #3b82f6;
}

.takvim-alani {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 16px 16px;
  min-height: 200px;
}

.takvim-baslik {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Record-creation area (bottom of the right sidebar): scrolls independently,
   the same way .panel-icerik's device list already does, so the form stays
   reachable even when it's fully expanded. */
#sag-panel-ekleme-alani {
  max-height: 35vh;
  overflow-y: auto;
}

/* Unified record form fields */
.form-etiket {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-bottom: 3px;
}

.form-girdi {
  width: 100%;
  background: #0f172a;
  color: white;
  border: 1px solid #475569;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-size: 12px;
}

/* Search + filter toolbar above the device list */
#panel-arac-cubugu {
  margin-bottom: 10px;
}

#panel-arama {
  width: 100%;
  background: #0f172a;
  color: white;
  border: 1px solid #475569;
  padding: 7px 8px;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 12px;
  margin-bottom: 6px;
}

#panel-arama:focus {
  outline: none;
  border-color: #38bdf8;
}

.panel-filtre-satiri {
  display: flex;
  gap: 5px;
}

.panel-filtre-satiri select {
  flex: 1;
  min-width: 0;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #475569;
  padding: 5px 3px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

#liste-sonuc-sayisi {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  min-height: 14px;
}


.modal-arkaplan {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-kutu {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 300px;
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-kutu h3 {
  margin: 0 0 15px 0;
}

.modal-kutu label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 10px;
}

.modal-kutu select,
.modal-kutu input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.modal-butonlar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-iptal {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-kaydet {
  background: #22c55e;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}


.takvim-merkezi-modal {
  position: fixed !important;
  top: 50% !important;
  left: -150% !important;
  transform: translate(-50%, -50%) !important;
  width: 450px !important;
  max-width: 150% !important;
  background: #1e293b !important;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.7) !important;
  border: 2px solid #475569 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  z-index: 9999 !important;
  animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}


.support-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.support-btn {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50px;
  padding: 10px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.support-btn .icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.support-btn .text {
  white-space: nowrap;
  margin-left: 10px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.support-btn:hover {
  width: 170px;
  background: rgba(30, 41, 59, 0.9);
}

.support-btn:hover .text {
  opacity: 1;
  transition-delay: 0.1s;
}


.support-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.support-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.glass-panel {
  background: rgba(20, 25, 35, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  padding: 24px;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.support-modal-overlay.active .glass-panel {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #f87171;
}

.modal-body p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 15px;
}

textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.submit-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1d4ed8;
}


.destek-sistemi-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.destek-sistemi-btn {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50px;
  padding: 10px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 0;
}


.destek-sistemi-btn .img-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.destek-sistemi-btn .img-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
}

.destek-sistemi-btn .destek-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.destek-sistemi-btn .destek-text {
  white-space: nowrap;
  margin-left: 10px;
  font-weight: 500;
  font-family: inherit;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.destek-sistemi-btn:hover {
  width: 170px;
  background: rgba(30, 41, 59, 1);
}

.destek-sistemi-btn:hover .destek-text {
  opacity: 1;
  transition-delay: 0.1s;
}


.rvm-ekstra-btn:hover {
  width: 155px;
}


.destek-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0;
  padding: 0;
}

.destek-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.destek-modal-content {
  background: rgba(20, 25, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  padding: 24px;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.destek-modal-overlay.active .destek-modal-content {
  transform: translateY(0);
}

.destek-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.destek-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.destek-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.destek-close-btn:hover {
  color: #f87171;
}

.destek-modal-body p {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 0;
  margin-bottom: 15px;
}

.destek-modal-body textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.destek-modal-body textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.destek-submit-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.destek-submit-btn:hover {
  background: #1d4ed8;
}


.excel-ekstra-btn:hover {
  width: 165px;
}


.excel-action-main-btn {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.excel-action-main-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  transform: translateX(4px);
}


.excel-form-group {
  margin-bottom: 15px;
}

.excel-form-group label {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.excel-form-group select,
.excel-form-group input[type="date"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  box-sizing: border-box;
  color-scheme: dark;
}

.excel-form-group select:focus,
.excel-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}


.excel-file-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.excel-file-dropzone div {
  font-size: 32px;
  margin-bottom: 8px;
}


.excel-modal-footer-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.excel-secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.excel-secondary-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}


.excel-date-range-container {
  display: flex;
  gap: 12px;
  width: 100%;
}

.excel-date-range-container .excel-form-group {
  flex: 1;
}

/* Mustafa Yıldırım */