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 {
    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 {
    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%;
    }
}