:root{
  --vh: 100dvh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@supports not (height: 100dvh){
  :root{ --vh: 100vh; }
}

html, body{
  min-height: var(--vh);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.card-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 3%;
    width: 95%;
}

.card {
  display: block;
  background-color: #ebecef;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 95%; /* Mobil uyum için */
  max-width: 600px;
  height: auto;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-text {
  color: #727070;
  flex: 1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3f3e3f;
}

.card p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
}

.cancel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9;
  margin-top: clamp(40px, 10vh, 200px);
  gap: 16px;
}

.ccard {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  width: 95%;
  max-width: 600px;
  height: auto;
  justify-content: center;
  align-items: center;
  margin-bottom: 210px;
}

.ccard-content {
  text-align: center;
}

.ccard p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.card-arrow {
  color: #42b186;
  transition: transform 0.2s ease;
}

.card:hover .card-arrow {
  transform: translateX(4px);
}

.info-wrapper {
  height: var(--vh);
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-content {
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-bottom: 200px;
}

.info-content p {
  margin: 8px 0;
  font-size: 15px;
  font-weight: normal;
  color: #606060;
  text-align: center;
}

select, .date-picker-display {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 32px 32px;
  font-size: 12px;
  border: 1px solid #7e7f7f;
  border-radius: 8px;
  padding: 10px;
  width: min(90%, 420px);
  box-sizing: border-box;
  text-align: left;
  text-indent: 2px;
  color: #727070;
}

select:focus, .date-picker-display:focus {
  outline: none;
  border-color: #888;
}

.date-picker-display {
  cursor: pointer;
  display: block;
  position: relative;
}

.custom-select-wrapper,
.custom-select {
  width: min(90%, 420px);
}

.calendar-wrapper {
  position: relative;
  display: inline-block;
  width: 420px;
}

.calendar {
  position: absolute;
  /* top: 0px; */
  width: 280px;
  background-color: #fff;
  border: 1px solid #aaa9a9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 12px;
  z-index: 1001;
}

.calendar.hidden {
  display: none;
}

/* .calendar-header {
  text-align: center;
} */

.month-year-with-nav {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 12px;
}

#monthYear {
  width: 120px;
  text-align: left;
  white-space: nowrap;
  color: #727070;
}

.nav-buttons-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-buttons-inline button {
  border: none;
  background: none;
  padding: 0;
  margin-right: 175px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  border-bottom: 2px solid #686868;
  padding-bottom: 6px;
  color: #727070;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
}

.calendar-grid div {
  padding: 6px 0;
  cursor: pointer;
  border-radius: 4px;
}

.calendar-grid div:hover {
  background-color: #eee;
}

.calendar-grid .inactive {
  color: #bbb;
}

.calendar-grid .selected {
  background-color: #dbeafe;
  color: #000;
}

.gradient-button,
.update-button,
.cancel-button,
.onay-button {
  background: linear-gradient(to right, #6459db, #9357d9);
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 90%;
  max-width: 300px;
  margin: 2em auto !important;
  display: block;
  position: relative !important;
  z-index: 200 !important;
  transform: translateY(15px);
}

.gradient-button:hover,
.update-button:hover,
.cancel-button:hover,
.onay-button:hover {
  opacity: 0.9;
}

label {
  margin-left: 0;
  text-align: left;
  width: 100%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  justify-content: flex-start;
  color: #727070;
  /* transform: translateX(4%); */
}

.form-wrapper {
  height: var(--vh);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 50px;
}

.checkbox-label {
  display: flex;
  cursor: pointer;
  user-select: none;
  color: #9b9797;
  font-weight: normal;
  top: 25px;
  position: relative;
}

.checkbox-label input {
  display: none;
}

.check-icon {
  width: 24px;
  height: 24px;
}

.tick-path {
  display: none;
}

.checkbox-label input:checked + .check-icon .tick-path {
  display: inline;
}

.title {
    font-weight: bold;
    color: #534b89;
    display: flex;
    align-items: center;
    gap: 75px;
    margin-bottom: 100px;
    transform: translateY(200%);
    justify-content: center;
}

.title-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;          /* ortalamayı netleştirir */
}

.title-link {
  position: absolute;
  left: 0;                 /* oku en sola sabitle */
  display: flex;
  align-items: center;     /* svg kutusunu dikeyde ortala */
  height: 100%;
}

.user-info {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #79787c;
  transform: translateY(25px);
}

.request-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(40px, 12vh, 250px);
  gap: 16px;
}

.req-text {
    position: absolute;
    margin-top: clamp(40px, 12vh, 250px);
    left: 19px;
    /* align-content: center; */
    /* display: flex
; */
    /* flex-direction: column; */
    align-items: center;
    /* justify-content: center; */
    /* gap: 16px; */
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper .info-container {
  position: absolute;
  top: 11%;
  transform: translateY(-100%);
  right: 28px;
  z-index: 10;
}

/* #staticInfo {
  position: absolute;
  top: 63%;
  transform: translateY(-100%);
  right: 588px;
  z-index: 10;
} */

.info-icon {
  font-size: 12px;
  width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #ff4545;
  background-color: #ffffff;
  color: #ff4545;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.red-text {
  font-size: 14px;
  color: red;
}

/* #warning  {
  display: flex;
  justify-content: center;
} */

.bubble {
  display: none;
  position: absolute;
  top: 25px;
  transform: translateX(-101.5%);
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 280px;
  z-index: 99999;
  max-height: 80vh;
  overflow-y: auto;
}

.bubble p {
  margin: 5px 0;
  font-size: 12px;
  text-align: center;
}

.hidden { display: none; }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--vh);
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 998;
}

.overlay.show { display: flex; }

.popup {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 325px;
  max-width: 90vw;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 999;
  text-align: center;
}

.popup p {
  margin: 30px 0;
  line-height: 1.6;
  font-size: 12px;
}

.alt-text {
  color: #9b9797;
  font-weight: 300;
  font-size: 9.5px;
  white-space: nowrap;
  /* margin-right: 55px; */
  transform: translateY(-30px);
  text-align: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: #4a4a4a;
  text-decoration: none;
  width: 20%;
}

.nav-item img {
  width: 24px; height: 24px; margin-bottom: 4px;
  filter: grayscale(100%) brightness(0%);
}

.nav-item span {
  font-weight: normal;
  background: linear-gradient(90deg, #a6a2e1, #b9a2e0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

select option:disabled { color: #aaa; }

@media (max-width: 768px) {
  select,
  .date-picker-display,
  .custom-select-wrapper,
  .custom-select {
    /* width: 90% !important; */
    margin-left: 0 !important;
  }
  .calendar {/* left: 5%; */}
  .gradient-button,
  .update-button,
  .cancel-button,
  .onay-button { max-width: 90%; }
  .popup { left: 10px; width: 90%; }
}

@media (max-width: 480px) {
  select,
  .date-picker-display,
  .custom-select-wrapper,
  .custom-select {
    width: 95% !important;
  }
  .gradient-button,
  .update-button,
  .cancel-button,
  .onay-button {
    max-width: 95% !important;
  }
}


/* ===== STABILITY + INFO ICON & CALENDAR FIX PATCH ===== */

/* 0) Scrollbar var/yok dalgalanmasını bitir: genişlik sabit kalsın */
html{
  scrollbar-gutter: stable both-edges;
}

/* 1) Dikey kaydırmayı geri aç; 100vw kaynaklı taşmayı kes */
html, body{
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 2) 100vw → % : devtools açılınca genişlik zıplamasını engeller */
.overlay{
  width: 100% !important;       /* was 100vw */
  height: var(--vh);
}

/* 3) Takvim her şeyin önünde; butondan da yüksek */
.calendar-wrapper{ position: relative; z-index: 1001; }
.calendar{ z-index: 1001 !important; }

/* 4) Buton akışta kalsın; translate kaynaklı kaymalar olmasın */
.gradient-button,
.update-button,
.cancel-button,
.onay-button{
  transform: none !important;             /* was translateY(...) */
  margin-top: 16px;                       /* görsel tampon */
  z-index: 150 !important;                /* calendar(1001) < buton(150) < bottom-nav(100?) */
}

/* 5) Başlıkta translate kullanma; resize’da sıçramayı kes */
.title{
  transform: none !important;             /* was translate */
  margin-top: clamp(8px, 2vh, 24px);
  margin-bottom: clamp(16px, 5vh, 40px);
  gap: clamp(16px, 6vw, 48px);
}

/* 6) Takvim/selektor sarmalayıcı genişliği akışkan olsun */
.calendar-wrapper{ width: min(100%, 420px) !important; }

/* 7) INFO ICON HİZALARI (sabit ve bağlamsal)
   - .staticInfo-container: tarih/kalender barının SAĞINDA sabit kalsın
   - .custom-select-wrapper .info-container: "Hizmet Türü" gibi alanlarda ilgili select'in sağında kalsın
*/
.custom-select-wrapper{ position: relative; }

/* Tarih alanının yanındaki SABİT ikon:
   HTML’de .staticInfo-container, ya .calendar-wrapper içinde ya da yanındaysa
   bu kural sağdaki oku/ikonun hizasına sabitler. */
.calendar-wrapper .info-container,
.info-container{
  position: absolute !important;
  top: 0% !important;
  right: 23px !important;                  /* input sağ kenarı */
  /* transform: translateY(-50%) !important; */
  z-index: 1002 !important;               /* takvimin de üstünde görünsün */
  pointer-events: auto;
}

/* Hizmet Türü (ve diğer selectler) için bağlamsal ikon */
.custom-select-wrapper .info-container{
  position: absolute !important;
  top: 0% !important;
  right: 23px !important;
  /* transform: translateY(-85%) !important; */
  z-index: 1002 !important;
}

/* 8) Uzun metinler kırılabilsin (genişlik değişiminde taşma olmasın) */
.title, label, .user-info, .alt-text{ overflow-wrap: anywhere; }

/* 9) Küçük ekranlarda ikonların taşmaması için güvenli alan */
@media (max-width: 480px){
  .custom-select-wrapper .info-container,
  .calendar-wrapper .info-container,
  .info-container{right: 0px !important;}
}

/* ——— Info ikonları ——— */

/* Tarih alanı konum bağlamı */
#tarih.date-field { position: relative; }

/* Tarihe ait SABİT ikon: sağ uca, dikey ortalı */
#tarih.date-field #staticInfo {
  position: absolute;
  top: 50%;
  right: 10px;                 /* sağ ok/chevron ile hizada */
  transform: translateY(-50%);
  z-index: 1002;               /* takvim ve butondan yüksek */
  pointer-events: auto;
}

/* Hizmet Türü gibi alanlarda koşullu info (zaten wrapper içinde) */
.custom-select-wrapper { position: relative; }
.custom-select-wrapper .info-container {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 1002;
}

/* Küçük ekran güvenlik payı */
@media (max-width: 480px){
  #tarih.date-field #staticInfo,
  .custom-select-wrapper .info-container {right: 8px;}
}

/* ——— Kayma / zıplama önleme ——— */

/* DevTools/scrollbar açılınca genişlik sabit kalsın */
html { scrollbar-gutter: stable both-edges; }

/* 100vw kaynaklı zıplamaları bitir */
.overlay { width: 100% !important; }

/* Başlık ve butonlarda transform kullanma: ölçü değişince sıçramasın */
.title {
  transform: translateY(100%)!important;          /* mevcut css’te translateY(200%) var, kaldır */
  margin-top: clamp(8px, 2vh, 24px);
  margin-bottom: clamp(16px, 5vh, 40px);
  gap: clamp(16px, 6vw, 48px);
}
.gradient-button,
.update-button,
.cancel-button,
.onay-button{
  transform: none !important;          /* mevcut translateY(15px) kaldır */
  z-index: 150 !important;             /* takvim (1001) > buton (150) > alt nav */
  margin-top: 16px;
}

/* Takvim her zaman önde */
.calendar { z-index: 1001 !important; }

/* Yükseklik ve scroll stabil */
html, body{
  /* overflow-y: hidden !important; */
  overflow-x: hidden !important;
}
