/* === GENEL AYARLAR === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: #f5f5f5;
  transition: background 0.3s, color 0.3s;
}

a {
  color: #9fa8da;
  text-decoration: none;
}
a:hover {
  color: #fff;
}

h1, h2, h3 {
  margin: 0 0 10px 0;
}

/* === DASHBOARD DÜZENİ === */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: 250px;
  background: #181818;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #333;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar .logo img {
  width: 80px;
  margin-bottom: 10px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar nav ul li {
  margin-bottom: 15px;
}

.sidebar nav ul li a {
  display: block;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar nav ul li a.active,
.sidebar nav ul li a:hover {
  background: #333;
  color: #fff;
}

.theme-toggle {
  text-align: center;
  margin-top: 20px;
}

/* === CONTENT === */
.content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* === KARTLAR === */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* === TABLO === */
.recent table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.recent th, .recent td {
  padding: 10px;
  border-bottom: 1px solid #333;
  text-align: left;
}

/* === LIGHT THEME === */
body.light {
  background: #f9f9f9;
  color: #111;
}

body.light .sidebar {
  background: #fff;
  border-right: 1px solid #ccc;
}

body.light .card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.light a {
  color: #3949ab;
}
