html {
    font-size: 15px !important;
}

body {
    font-family: "verdana", "tahoma" !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 {
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    min-width: 75%;
    margin: 0.75rem auto;
}

#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;
}

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;
}

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.1rem !important;
}

fieldset, #nufus-puani-hesabi-container {
    width: 32%;
    box-sizing: border-box;
    margin: 0.3rem auto;
}
fieldset, #sonuc {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0.7rem 0.8rem 0.7rem 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #f2f2f2;
}
legend {
    font-weight: 600;
    padding: 0 1rem !important;
    color: #333;
}

#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;
    background-color: lightskyblue;
    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;
}
#net {
    margin: 0 auto;
    width: 95% !important;
    flex: 1 100%;
}

#sonuc input {
    background-color: lightseagreen;
    color: white;
    text-align: center;
    font-size: 0.9rem !important;
}

#zam {
    display: flex;
    justify-content: center;
}
#zam label {
    font-size: 0.8rem !important;
    margin: auto 0 auto 0.5rem;
}
#zam select {
    max-height: 2.1rem;
    max-width: 4.5rem;
    font-size: 0.8rem !important;
    margin: auto 0 auto 0.5rem;
}

#temel_ucret table, #destek_tesvik table {
    text-align: center;
}

#resetBtn {
  position: absolute;
  top: -1.2rem;
  left: 0.9rem;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 50%;
  background-color: #ff0000;
  color: white;
  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: 1.5rem;
}
#resetBtn:hover {
  background-color: #aa00bb;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
#resetBtn:active {
  transform: scale(0.95);
  background-color: #1d4ed8;
}

/*
.my-select {
  position: relative;
  user-select: none;
}
.select-header {
  border: 1px solid #999;
  padding: 0.2rem;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.select-header:focus-within {
  border-color: #0078d4;
  box-shadow: 0 0 3px rgba(0,120,212,0.5);
}
.arrow {
  transition: transform 0.2s;
}
.option-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #aaa;
  background: #fff;
  border-radius: 6px;
  margin-top: 2px;
  max-height: 18rem;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 99999;
}
.option {
  padding: 6px 10px;
  cursor: pointer;
}
.option:hover, .option.active {
  background: #0078d4;
  color: white;
}
.filter-input {
  width: calc(100% - 20px);
  margin: 6px 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
*/

#zamli {
    transform: scaleY(0);
    transform-origin: bottom;
    flex-basis: 0;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    pointer-events: none;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: hidden;
}
#zamli.show {
    margin: 0 auto 0.5rem auto;
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
    padding: 0.7rem;
    flex: 1 40%;
    width:  95% !important;
}
#zamli legend {
    background-color: black;
    color: goldenrod;
    border-radius: 0.3rem;
}


.grup_sayilari {
    display: table-row;
}

#message {
    color: darkred;
    padding: 0.3rem 0.8rem;
    margin: auto;
    font-weight: bold;
    font-family: Consolas !important;
    font-size: 0.9rem !important;
    text-align: center;
    flex: 1;
}

.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}



@media (max-width: 1650px) {
    #main-container {
        width: 80%;
        min-width: 80%;
    }
    #sonuc {
        width: 30% !important;
    }
}

@media (max-width: 1450px) {
    html {
        font-size: 14px !important;
    }
    #main-container {
        width: 85%;
        min-width: 85%;
    }
    #sonuc {
        width: 35% !important;
    }
}

@media (max-width: 1250px) {
    #main-container {
        display: block;
        width: 90%;
        min-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%;
    }
    #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%;
    }
}