html {
    font-size: 15px !important;
}

body {
    font-family: "SEGOE UI", "Tahoma" !important;
    background-color: #555 !important;
    color: ivory;
}

::selection {
    background-color: gold !important;
    color: black !important;
}
:disabled {
    background-color: #aaa !important;
    color: white !important;
    font-weight: bold !important;
}
.maas-input:focus {
    outline: 3px solid blue !important;
    background-color: lightskyblue !important;
    color: blue !important;
}
.bordro-input:focus {
    outline: 3px solid darkgreen !important;
    background-color: limegreen !important;
    color: blue !important;
}

h4 {
    position: relative;
    text-align: center;
    width: 100%;
    font-size: 2.1rem !important;
    font-family: Consolas !important;
}
#parametre-title, #bordro-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#main-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    min-width: 75%;
    margin: 0.75rem auto;
}
.navbar {
    width: 75%;
}

#parametre-container, #son-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* font ayarları */
label, input, select, .select-header, fieldset, #nufus-puani-hesabi-container {
    font-size: 0.85rem !important;
}
input, select, .select-header {
    box-sizing: border-box;
    background-color: #2c3e50;
    color: ivory;
    font-weight: 500;
}
input, .select-header {
    padding: 0.1rem 0.1rem 0.1rem 0.5rem !important;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
}
input[readOnly] {
    caret-color: transparent;
    background-color: #aaa;
    color: white;
}
.bordro-input {
    background-color: seagreen !important;
    color: ivory !important;
    font-weight: bold !important;
}

.error-input, .error-input:focus {
    outline: 2px solid red !important;
    background-color: #ffcccc !important;
    color: darkred !important;
}

select {
    padding: 0.1rem 0.1rem 0.1rem 0.4rem !important;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
}
#performans input {
    padding: 0.5rem 0.25rem !important;
}

fieldset, #nufus-puani-hesabi-container {
    width: 32%;
    box-sizing: border-box;
    margin: 0.3rem auto;
}
fieldset td {
    color: black !important;
    font-weight: 600 !important;
}
fieldset {
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: black;
    background-color: ivory;
    font-weight: 600;
}
legend {
    font-weight: 700;
    padding: 0.45rem 0.9rem !important;
    border-radius: 8px;
    color: darkgreen;
    background-color: goldenrod;
}

#nufus-puani-hesabi-container fieldset, #performans-tesvik-container fieldset {
    width: 100%;
}

#performans-tesvik-diger-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
#performans-tesvik-container {
    width: 58%;
}
#diger_durumlar {
    width: 38%;
}

#nufus-puani-hesabi-container, #performans-tesvik-diger-container, #performans-tesvik-container {
    margin: 0 auto;
}

#nufus-puani-hesabi-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
#gezici_nufus {
    margin-bottom: auto;
    flex: 1;
}
#hesaplanan_nufus_puani {
    margin-top: auto;
}

#son-container fieldset {
    width: 45%;
    height: max-content;
}

table {
    table-layout: fixed;
    width: 100%;
}

#sonuc table, #performans table, #tesvik table, #performans input {
    text-align: center;
}

td {
    padding: 0.08rem;
}

.mini-title {
    font-weight: 600;
    color: blue;
    padding: 0.5rem 0 0.25rem 0 !important;
}

#sonuc {
    position: fixed;
    display: flex;
    justify-content: center;
    flex-direction: column;
    bottom: 0;
    width: 25% !important;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    font-weight: bold;
    font-size: 0.9rem !important;
    color: blue;
    z-index: 9999;
    transition: bottom 0.2s ease;
    border: none;
    border-radius: 12px;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#net {
    background-color: #e67e22 !important;
    color: blue;
    margin: auto;
    width: 100% !important;
    flex: 1 100%;
}

#guncel_vergi_dilimi_container {
    display: flex;
    align-items: flex-start;
}
#guncel_vergi_dilimi_container label {
    margin: auto !important;
}
#guncel_vergi_dilimi_container input {
    width: 4rem !important;
    padding: 0.6rem !important;
    margin: auto 0.5rem !important;
    text-align: center !important;
    background-color: darkred !important;
    color: ivory !important;
    border: 1px solid darkred !important;
    border-radius: 0.4rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
}
#sonuc table input {
    background-color: darkgreen !important;
    color: white !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.1rem !important;
    border: 1px solid green !important;
    border-radius: 0.3rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

#temel_ucret table, #destek_tesvik table {
    text-align: center;
}

.grup_sayilari {
    display: table-row;
}

#message {
    color: yellow;
    padding: 0.3rem 0.8rem;
    margin: auto;
    font-weight: bold;
    font-family: Consolas !important;
    font-size: 0.9rem !important;
    text-align: center;
    flex: 1;
}
#maas_tarihi_message {
    font-weight: bold;
    color: darkred;
    font-size: 1rem !important;
    padding: 0.35rem 0 !important;
    margin: 0.5rem 0 !important;
    text-align: center;
    border-top: 1px solid green;
    border-bottom: 1px solid green;
    background-color: #ccc !important;
}

.tooltip {
  position: fixed;
  background: #B53471;
  color: ivory;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

hr {
    border: none;
    height: 1px;
    background-color: blue;
    width: 70%;
    margin: 0.4rem auto !important;
}



@media (max-width: 1700px) {
    #main-container {
        width: 80%;
        min-width: 80%;
    }
    .navbar {
        width: 80%;
    }
    #sonuc {
        width: 30% !important;
    }
}

@media (max-width: 1500px) {
    html {
        font-size: 14px !important;
    }
    #main-container {
        width: 85%;
        min-width: 85%;
    }
    .navbar {
        width: 85%;
    }
    #sonuc {
        width: 35% !important;
    }
}

@media (max-width: 1300px) {
    #main-container {
        display: block;
        width: 90%;
        min-width: 90%;
    }
    .navbar {
        width: 90%;
    }
    fieldset, #nufus-puani-hesabi-container {
        width: 45%;
    }
    #sonuc {
        width: 40% !important;
    }

    #performans-tesvik-diger-container {
        width: 45%;
        flex-direction: column;
    }
    #performans-tesvik-container, #diger_durumlar {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    html {
        font-size: 12px !important;
    }
    #sonuc {
        width: 45% !important;
    }
}

@media (max-width: 800px) {
    #main-container {
        width: 95%;
        min-width: 95%;
    }
    .navbar {
        width: 95%;
    }
    #parametre-container, #son-container {
        display: block;
    }
    fieldset, #son-container fieldset, #nufus-puani-hesabi-container, #performans-tesvik-diger-container {
        width: 90%;
    }
    #sonuc {
        width: 55% !important;
    }
    table {
        text-align: center !important;
    }
    hr{
        width: 50% !important;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 10px !important;
    }
    #sonuc {
        width: 70% !important;
    }
}

@media (max-width: 400px) {
    #sonuc {
        width: 80% !important;
    }
    fieldset, #son-container fieldset, #nufus-puani-hesabi-container, #performans-tesvik-diger-container {
        width: 100%;
    }
}

/* ===== Menu Stilleri ===== */
/* menu style ayarları ! */
.navbar {
    position: relative;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 100% !important;
    font-size: 0.9rem !important;
    margin: 0 auto !important;
    gap: 0.5rem;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
}
.navbar a:hover {
    background-color: #bbb;
    border-radius: 5px;
}

.nav-select {
    background-color: ivory !important;
    color: #009 !important;
    margin-right: 1rem;
    font-size: 1.2rem !important;
}
.nav-label {
    color: ivory;
    white-space: nowrap;
    margin: auto 0;
    font-size: 0.9rem !important;
    font-weight: bold;
}
#nav-right {
    display: flex;
    position: absolute;
    right: 2.5rem;
    top: 121%;
}
#nav-left {
    display: flex;
    width: 100%;
}

.nav-select, .nav-label {
    padding: 0.5rem;
    max-width: 10rem;
}

#resetBtn, #getInfos, #updateInfos {
    margin: 0 auto;
    width: 7.5rem;
    padding: 0.2rem !important;
    border: none;
    border-radius: 0.75rem;
    background-color: red;
    color: ivory;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem !important;
    font-weight: bold;
}
#resetBtn span {
    margin-right: 0.4rem;
    font-size: 2rem !important;
}
#resetBtn:hover, #getInfos:hover, #updateInfos:hover {
  background-color: darkred;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
#resetBtn:active, #getInfos:active, #updateInfos:active {
  transform: scale(0.95);
  background-color: blue;
}

/* Arka plan karartması */
.overlay {
    position: fixed;
    max-width: 100% !important;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 999999;
    transition: opacity .4s ease;
}
.overlay h4 {
    font-size: 1.6rem !important;
    font-weight: bold !important;
    margin: 0.7rem 0;
}

/* Info Iconu */
#info { /* top-left */
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 1rem;
    font-weight: bold;
    font-family: cursive;
    background-color: black;
    color: blue;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}
#info:hover {
    background-color: #555;
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
#info:active {
    transform: scale(1);
    background-color: darkgreen;
}

/* Popup kutusu */
#popupHeader {
  position: relative;
  border-bottom: 3px solid #0984e3;
}
#popupTitle {
  margin: 0;
  padding: 1.5rem;
  width: 70%;
}
#calcIcon {
  position: absolute;
  width: 30%;
  height: auto;
  right: 0;
  transform: translateY(-40%);
  background-color: ivory;
  opacity: 0.60;
  padding: 1.2rem 0.3rem;
  border-radius: 50%;
}
#popupDesc {
  margin-top: 3rem;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

.popup {
    width: 70%;
    padding: 1.5rem;
    background: ivory;
    color: black;
    border-radius: 1rem;
    transform: scale(.7);
    transition: transform .4s ease;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    max-height: 80vh;
}
.popup ul {
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    list-style: none;
}
.popup ul>li li::before {
    content: "✅ ";
}
.popup li {
    margin: 2rem 0;
    font-size: 1rem !important;
    font-weight: 500 !important;
}
.popup .sub-title {
    font-weight: bold !important;
    /*color: blue !important;*/
}
.content>ul {
	list-style-type: none;
	padding: 0;
}
.content>ul>li {
	padding: 1rem 2rem;
	box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    background-color: lightgray;
	border-radius: 0.5rem;
}
#mavi-alan {
    background-color: #2c3e50;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#gri-alan {
    background-color: #aaa;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#sari-alan {
    background-color: seagreen;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#yesil-alan {
    background-color: darkgreen;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.overlay.active .popup {
    transform: scale(1);
}
.submit {
    font-size: 1rem !important;
    font-weight: bold;
    padding: 0.4rem !important;
    width: 90%;
    border: 1px solid goldenrod;
    border-radius: 0.5rem;
    box-sizing: border-box;
    margin: auto;
    background-color: #333;
    color: goldenrod;
}

#raporlaButton {
  font-size: 1rem !important;
  font-family: Consolas;
  font-weight: bold;
  background-color: darkred;
  color: gold;
  padding: 1.2rem;
  border: 1px solid goldenrod;
  border-radius: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,255,0.5);
  transition: all 0.2s ease;
  cursor: pointer;
}
#raporlaButton:hover {
  background-color: seagreen;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0,0,255,0.5);
}
#raporlaButton:active {
  transform: scale(1);
  background-color: darkgreen;
}

/* sayıların görünürlüğünü artırmak için sonradan yazıldı */
input {
    letter-spacing: 0.1rem !important;
}

/* print ayarları hepsi important olacak */
@media print {
  @page {
    size: A4 landscape !important;
    margin: 7mm !important;
  }

  body, main {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body {
    zoom: 0.8 !important;
  }

  body * {
    visibility: hidden !important;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  #main-container,
  #main-container * {
    visibility: visible !important;
    color: #000 !important;
    background: none !important;

    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  #main-container {
    position: absolute !important;
    top: 2% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* transform: scale(0.96) translateX(-50%) !important; */
    display: flex !important;
    margin: 0 !important;

    page-break-after: avoid !important;
  }

  #parametre-container, #son-container {
    display: flex !important;
  }
  #temel_parametreler, #nufus_gruplari, #nufus-puani-hesabi-container, #odemeler, #brut-maas-kesintiler, #sonuc {
    width: 33% !important;
  }
  #performans-tesvik-diger-container {
    width: 100% !important;
    flex-direction: row !important;
  }
  #performans-tesvik-container, #diger_durumlar {
    width: 49.5% !important;
  }

  td, fieldset, legend {
    padding: 0 0.2rem!important;
    margin: 0 !important;
  }
  hr, #son-container, #nufus-puani-hesabi-container, #performans-tesvik-container, #diger_durumlar {
    margin: 0 !important;
  }
  #son-container, #performans-tesvik-container, #diger_durumlar, fieldset {
    margin-top: 0.6rem !important;
  }
  #net {
    padding: 2rem !important;
  }

  #sonuc {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: translateX(0) !important;
  }
  #sonuc table input, #net input {
    color: #000 !important;
  }

  header, footer, h4, .overlay, #info, .navbar, #raporlaButton {
    display: none !important;
  }
}


/**
 * User Manager Sayfa Stilleri
 */

 /* card görünümü */
#diyahed-maas-form-container {
    width: 500px;
    max-width: 90%;
    border-radius: 15px;
    background-color: rgba(72, 52, 212, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
    padding: 2rem;
    text-align: center;
}
#diyahed-maas-form-container form {
    margin: 3rem 0;
}

#diyahed-maas-form-container label {
    font-family: "Tahoma";
    display: block;
    width: 90%;
    margin: 1rem auto 0 auto;
}

#diyahed-maas-form-container h4 {
    font-size: 1.2rem !important;
    font-family: "Segoe UI", "Tahoma" !important;
}

#diyahed-maas-form-container blockquote {
    font-size: 1rem;
    font-family: "Tahoma";
    color: pink;
    margin-top: 2rem;
}

#diyahed-maas-form-container input {
    color: darkblue !important;
    font-size: 1.2rem !important;
    font-family: "Tahoma";
    display: block;
    height: 2.5rem;
    width: 90%;
    margin: 0.5rem auto 0 auto;
    border: none;
    /* gray gradient background-color */
    background: linear-gradient(to left, #d3d3d3, #f0f0f0);
}

#diyahed-maas-form-container button {
    font-size: 1.2rem;
    color: darkblue !important;
    font-family: "Segoe UI", "Tahoma";
    display: block;
    height: 2.5rem;
    width: 65%;
    margin: 2rem auto;
    border: none;
    background: linear-gradient(to left, #d3d3d3, #f0f0f0);
    cursor: pointer;
}

#diyahed-user-message.error {
    font-size: 1rem;
    font-family: "Segoe UI", "Tahoma";
    padding: 0.5rem;
    color: ivory;
    font-weight: bold;
    background-color: rgba(255,0,0, 0.5);
    border-radius: 7px;
}
#diyahed-user-message.success {
    font-size: 1rem;
    font-family: "Segoe UI", "Tahoma";
    padding: 0.5rem;
    color: ivory;
    font-weight: bold;
    background-color: seagreen;
    border-radius: 7px;
}

#diyahed-register-il, #diyahed-register-ilce {
    width: 90%;
    height: 2.5rem;
    margin: 0.5rem auto 0 auto;
    padding: 0.5rem;
    font-size: 1rem !important;
    font-family: "Tahoma";
    color: blue !important;
    border: none;
    background: linear-gradient(to left, #d3d3d3, #f0f0f0);
}