* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
  min-height: 100vh;
}
.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card {
  background: #171a21;
  border: 1px solid #2a2e38;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
}
.card h1 {
  margin: 0 0 24px;
  font-size: 20px;
  text-align: center;
  color: #fff;
}
label {
  display: block;
  font-size: 13px;
  color: #9aa0ac;
  margin-bottom: 6px;
}
input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #0f1115;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}
input:focus { outline: none; border-color: #4f7cff; }
button {
  width: 100%;
  padding: 11px;
  background: #4f7cff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #3d68e6; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.error {
  color: #ff6b6b;
  font-size: 13px;
  margin: -8px 0 16px;
  min-height: 16px;
}

/* Dashboard - sol menu + sag icerik */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #171a21;
  border-right: 1px solid #2a2e38;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  padding: 0 20px 20px;
}
.sidebar-title img { width: 48px; height: 48px; border-radius: 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  width: auto;
  text-align: left;
  background: transparent;
  color: #9aa0ac;
  border: none;
  border-radius: 0;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 14px;
}
.nav-item:hover { background: #1f232c; color: #fff; }
.nav-item.active { background: #1f232c; color: #fff; border-left: 3px solid #4f7cff; padding-left: 17px; }
.sidebar-bottom {
  padding: 16px 20px 0;
  border-top: 1px solid #2a2e38;
  margin-top: 12px;
}
.sidebar-bottom #whoami { display: block; color: #9aa0ac; font-size: 13px; margin-bottom: 10px; }
.sidebar-bottom button { background: #2a2e38; }
.sidebar-bottom button:hover { background: #3a3f4b; }

.main { flex: 1; padding: 32px; }
.page { max-width: 700px; }
.page h1 { font-size: 20px; margin: 0 0 20px; color: #fff; }
.section {
  background: #171a21;
  border: 1px solid #2a2e38;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.section h2 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.section p { margin: 0; color: #9aa0ac; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #9aa0ac; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #2a2e38; }
td { padding: 8px 10px; border-bottom: 1px solid #1f232c; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: #2a2e38;
  color: #9aa0ac;
}
.badge.admin { background: #4f3a1a; color: #ffc978; }
.link-btn {
  width: auto;
  background: transparent;
  color: #ff6b6b;
  padding: 4px 8px;
  font-weight: 500;
  font-size: 12px;
}
.link-btn:hover { background: #2a1616; }
