/* Base styles */
html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

header {
  margin-bottom: 20px;
}

.gecmis-item {
  color: #333;
}

h1 {
  text-align: center;
  margin: 0 0 10px 0;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tabs button {
  margin: 0;
  padding: 10px 20px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}

.tabs button:focus,
.tabs button:hover {
  background: #e0e0e0;
  outline: none;
}

.tab-content {
  display: none;
  margin-top: 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 24px 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

.tab-content.active {
  display: block;
}

.inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.inputs input {
  margin: 0;
  padding: 7px;
  width: 70px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  transition: border 0.2s;
}

.inputs input:focus {
  border: 1.5px solid #3498db;
  outline: none;
}

.result {
  margin-top: 15px;
  font-weight: bold;
  color: #333;
  word-break: break-word;
}

button,
input[type="button"],
input[type="submit"] {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 10px;
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
  outline: 2px solid #3498db;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #e0e0e0;
}

.gecmis-listesi {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Destek kutusu */
#destekKutusu {
  max-width: 500px;
  margin: 20px auto 0 auto;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-family: sans-serif;
  display: none;
  text-align: left;
}

#destekKutusu h3 {
  margin-top: 0;
}

#destekKutusu p {
  margin: 5px 0;
}

aside {
  margin-top: 40px;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.95em;
  color: #888;
  padding: 16px 0 8px 0;
  background: transparent;
}

/* --- Gece Modu için eklemeler --- */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .tab-content {
  background-color: #1e1e1e;
  border-color: #333;
  color: #eee;
}

body.dark-mode #destekKutusu {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #eee;
}

body.dark-mode button,
body.dark-mode input[type="button"],
body.dark-mode input[type="submit"] {
  background-color: #333;
  color: #eee;
  border: none;
}

body.dark-mode button:hover,
body.dark-mode input[type="button"]:hover,
body.dark-mode input[type="submit"]:hover {
  background-color: #555;
}

body.dark-mode .gecmis-item {
  color: #eee;
}

body.dark-mode .result {
  color: #eee;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .tabs {
    gap: 6px;
  }

  .tabs button {
    padding: 8px 12px;
    font-size: 1em;
  }

  .tab-content {
    padding: 18px 8px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 8px;
    font-size: 15px;
  }

  h1 {
    font-size: 1.2em;
    padding: 0 5px;
  }

  .tabs {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .tabs button {
    width: 100%;
    margin: 0;
    font-size: 1em;
    padding: 10px 0;
    border-radius: 6px;
  }

  .tab-content {
    margin-top: 10px;
    padding: 10px 2px;
    max-width: 100vw;
  }

  .inputs {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    overflow-x: unset;
  }

  .inputs input {
    width: 70px;
    min-width: 70px;
    max-width: 120px;
    margin: 0 2px;
    display: block;
    font-size: 1em;
    flex: 0 0 auto;
  }

  .result {
    font-size: 1em;
    padding: 0 2px;
  }

  #destekKutusu {
    max-width: 98vw !important;
    padding: 8px !important;
    font-size: 0.98em;
  }

  button,
  input[type="button"],
  input[type="submit"] {
    font-size: 1em;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-top: 5px;
  }

  aside {
    margin-top: 24px;
  }

  footer {
    margin-top: 24px;
    font-size: 0.9em;
  }
}

.destekButton {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #ffcccb;
  border: none;
  border-radius: 6px;
}
