/* GENEL RESET */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;  /* 💡 Saf beyaz arka plan */
  color: #333;
  box-sizing: border-box;









}

*, *::before, *::after {
  box-sizing: inherit;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

header {
  background-color: #ffffff; /* Saf beyaz */
  color: #333; /* Yazılar için koyu gri (isteğe bağlı) */
    padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 68px; /* ya da 56px gibi */
  margin-right: 10px; /* istersen biraz daha boşluk */
}


.logo h1 {
  font-size: 1.7rem;
  font-weight: 600;
  color: inherit;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

nav a:hover {
  background-color: #ddd;
}

main {
  flex: 1;
  width: 100%;
  padding: 0;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  padding: 10px;
  width: 100%;
  max-width: 100vw;
}

.widget {
  background: #ffffff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.widget h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: inherit;
}

.widget input,
.widget select,
.widget button,
.widget label {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 4px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.widget button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.widget button:hover {
  background-color: #0056b3;
}

.wide {
  grid-column: span 2;
}

/* TABLO */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

th, td {
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 0.8rem;
  text-align: center;
  color: inherit;
}

th {
  background-color: #eee;
}

#searchBox {
  margin-bottom: 6px;
  font-size: 0.85rem;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Widget Grup */
.widget-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  width: 100%;
  grid-column: span 6;
}

.widget-group .widget {
  margin: 0;
  width: 100%;
}

footer {
  background: #f1f1f1;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  border-top: 1px solid #ccc;
  width: 100%;
  color: inherit;
}

footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 4px;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .widget-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard,
  .widget-group {
    grid-template-columns: 1fr;
  }
}
