/* Genel Sayfa Stilleri */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background: #f8f9fa;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 16px 32px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* logonun yüksekliği */
  margin-right: 10px; /* logo ile yazı arası boşluk */
}

.logo a {
  font-size: 1.6rem;
  font-weight: bold;
  color: #c20000; /* Veya kullandığınız ana renk */
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  /* Span'e özel stil gerekirse buraya eklenir */
}

.nav-links a {
  margin: 0 16px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.btn-giris {
  background-color: #c20000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}


/* Başlık (Header) ve Navigasyon Stilleri */
.header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* Yeni Sayfa İçeriği Stilleri */
.hero-hesaplama {
    text-align: center;
    background-color: #002244;
    color: white;
    padding: 60px 20px;
}

.hero-hesaplama h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.calculator-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.calculator-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.scrollable-content {
    flex: 2;
    overflow-y: auto;
    max-height: 80vh; 
    padding-right: 20px;
}

.results-box-sticky {
    flex: 1;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 12px;
    text-align: center;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.test-section {
    margin-bottom: 15px;
}

.test-section h2 {
    font-size: 1.5rem;
    color: #002244;
    border-bottom: 2px solid #c20000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.test-group {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.test-group-title {
    font-size: 1.2rem;
    color: #002244;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-button {
    background: none;
    border: 1px solid #c20000;
    color: #c20000;
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.toggle-content {
    display: none;
}

.toggle-content.expanded {
    display: block;
}

.input-labels {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-bottom: 5px;
    padding-right: 8px;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}

.subject-row:last-child {
    border-bottom: none;
}

.subject-row label {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    padding-right: 5px;
}

.input-group {
    display: flex;
    gap: 3px;
    align-items: center;
}

.input-group input[type="number"] {
    width: 45px;
    height: 25px;
    padding: 2px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.net-display {
    min-width: 50px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
}

#calculate-button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

#calculate-button:hover {
    background-color: #0056b3;
}

.sub-section-title {
    margin-top: 30px;
}

.results-box-sticky h3 {
    color: #002244;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Yeni Puan Tablosu Stilleri */
.results-box-sticky table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.results-box-sticky th, .results-box-sticky td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.results-box-sticky thead {
    background-color: #002244;
    color: white;
}

.results-box-sticky thead th {
    font-weight: bold;
}

.results-box-sticky tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.results-box-sticky tbody td {
    font-weight: 500;
}

.results-box-sticky .disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}

/* Mobil uyumluluk */
@media (max-width: 900px) {
    .calculator-container {
        flex-direction: column;
        padding: 10px;
    }
    .results-box-sticky {
        position: static;
        margin-top: 20px;
    }
    .scrollable-content {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    .header {
        padding: 10px 20px;
    }
}