/* Genel */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  color: white;
}

/* Navbar */
.navbar {
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  align-items: center;
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #ffcc00;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chart-card {
  grid-column: span 2;
}

/* List pages */
.list-page {
  padding: 20px;
}

.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  background: rgba(255,255,255,0.1);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  transition: background 0.3s;
}

.styled-list li:hover {
  background: rgba(255,255,255,0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.4);
  margin-top: 40px;
}

/* ---- Koyu tema varyasyonu ---- */
.theme-dark {
  background: #0b0f17;
  color: #e6edf3;
}
.theme-dark .navbar { background: rgba(9,12,19,.8); border-bottom: 1px solid #1f2a3a; }
.theme-dark .navbar a.active, .theme-dark .navbar a:hover { color: #7aa2ff; }
.theme-dark .hero { background: linear-gradient(180deg, rgba(122,162,255,.08), transparent); }
.theme-dark .container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.theme-dark .muted { color: #96a4b6; }

/* Araç çubuğu */
.toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px;
}
.toolbar input[type="search"]{
  width: 260px; padding:10px 12px; border-radius:10px; border:1px solid #22314a; outline:none;
  background:#0f1723; color:#e6edf3;
}

/* Tablo kartı */
.table-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid #1f2a3a; border-radius:16px; overflow:hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}
.table-scroll{ overflow:auto; }
.table{
  width:100%; border-collapse:separate; border-spacing:0;
}
.table thead th{
  text-align:left; font-weight:600; font-size:13px; color:#b8c7e0; padding:14px 16px;
  background:rgba(255,255,255,.03); position:sticky; top:0; z-index:1;
  border-bottom:1px solid #1f2a3a;
}
.table tbody td{
  padding:14px 16px; border-bottom:1px solid #1a2638; font-size:14px;
}
.table tbody tr:hover{ background: rgba(122,162,255,.06); transition: .2s; }

/* Hücre içerikleri */
.cell-user{
  display:flex; align-items:center; gap:10px;
}
.avatar{
  width:28px; height:28px; border-radius:50%; object-fit:cover; border:1px solid #283954;
}
.badge{
  display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600;
  border:1px solid rgba(122,162,255,.35); background: rgba(122,162,255,.12); color:#cfe1ff;
}
.badge.gray{ border-color:#3a4558; background:rgba(255,255,255,.06); color:#c8d0db; }
.badge.green{ border-color:#2b8a4a; background:rgba(34,197,94,.15); color:#b8f7cf; }
.badge.red{ border-color:#8a2b2b; background:rgba(239,68,68,.15); color:#ffd0d0; }

.btn{
  background:#121a29; border:1px solid #22314a; color:#dbe5f5;
  padding:8px 10px; border-radius:10px; cursor:pointer;
}
.btn:hover{ border-color:#33517a; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }
.table-footer{
  display:flex; align-items:center; justify-content:space-between; padding:12px 14px; background:rgba(255,255,255,.03);
  border-top:1px solid #1f2a3a;
}
.table th.actions, .table td.actions { text-align:right; }

/* Hero küçük varyant */
.hero.compact{ padding: 32px 20px; text-align:left; }

/* Dashboard kartları (index.html için) */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.dashboard .card {
  flex: 1 1 250px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid #1f2a3a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}

.dashboard .card h2 {
  margin-top: 0;
  font-size: 18px;
  color: #b8c7e0;
}

.dashboard .card p {
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0 0;
  color: #e6edf3;
}

/* Grafik kartı */
.dashboard .chart-card {
  flex: 2 1 500px;
}

canvas#memberChart {
  width: 100% !important;
  height: 250px !important;
}

.card.chart-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;       /* Kart genişliği tüm container */
  min-height: 350px; /* Kart yüksekliği arttırıldı */
}

.card.chart-card canvas {
  width: 100% !important;  /* Canvas genişliği tüm kartı kapsar */
  height: 350px !important; /* Yüksekliği kart ile uyumlu */
}

/* style.css */

/* Genel ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.theme-dark {
  background-color: #121212;
  color: #f5f5f5;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background-color: #1e1e1e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-header {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #ffcc00;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 15px;
}

.sidebar-menu li a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 1em;
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background-color: #333;
}

.sidebar-footer {
  font-size: 0.8em;
  text-align: center;
  color: #888;
}

/* Main Content */
.main-content {
  margin-left: 220px;
  padding: 20px;
}

/* Navbar */
.navbar {
  background-color: #1e1e1e;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.navbar h1 {
  font-size: 1.5em;
  color: #ffcc00;
}

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  color: #ffcc00;
}

.card p {
  font-size: 1.2em;
}

/* Chart */
.chart-card canvas {
  margin-top: 15px;
}

/* Server Info */
.server-info ul {
  list-style: none;
  margin-top: 10px;
}

.server-info ul li {
  margin-bottom: 8px;
  font-size: 1em;
}

.server-info ul li strong {
  color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 10px;
  }

  .main-content {
    margin-left: 0;
    margin-top: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Temel body */
body.theme-dark {
  background-color: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #1f1f1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  font-size: 1.5rem;
  text-align: center;
  padding: 20px 0;
  background-color: #292929;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.sidebar-menu li a {
  display: block;
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar-menu li a.active,
.sidebar-menu li a:hover {
  background-color: #00ff99;
  color: #000;
}

.sidebar-footer {
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
  color: #888;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
}

.navbar h1 {
  margin: 0 0 20px 0;
}

/* Dashboard grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.card {
  background-color: #1f1f1f;
  padding: 15px;
  border-radius: 10px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.chart-card {
  padding: 20px;
}

/* Sunucu bilgileri */
.server-info ul {
  list-style: none;
  padding: 0;
}

.server-info ul li {
  margin-bottom: 5px;
}

/* Badge */
.badge.gray {
  background-color: #555;
  color: #fff;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* Button */
.btn {
  background-color: #00ff99;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;    /* Logo ortalanır */
  padding: 10px 0;            /* Üst-alt boşluk */
}

.logo-wrapper {
  width: 50px;                /* Çerçeve boyutu */
  height: 50px;
  border: 2px solid #ffffff;  /* Beyaz çerçeve */
  border-radius: 50%;         /* Daire şekli */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c2c2c;  /* Çerçeve arka planı */
  box-sizing: border-box;
}

.logo {
  width: 200%;                 /* Logoyu çerçeveye sığdırır */
  height: 200%;
  object-fit: contain;
  border-radius: 50%;
}

/* Genel */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #0d0d0d;
  color: #fff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #222;
  padding: 20px 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 18px;
  font-weight: bold;
}

.logo-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c1c;
}

.logo {
  width: 200%;
  height: 200%;
  object-fit: contain;
  border-radius: 50%;
}

.sidebar-menu {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.sidebar-menu li {
  margin: 5px 0;
}

.sidebar-menu a {
  display: block;
  padding: 10px 20px;
  color: #aaa;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: #1f1f1f;
  color: #fff;
}

.sidebar-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 10px;
}

/* Main Content */
.main-content {
  margin-left: 240px;
  padding: 20px;
}

.navbar h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #aaa;
}

.card p {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

/* Chart */
.chart-card {
  grid-column: span 2;
}

#joinChart {
  max-height: 300px;
}

/* Server Info */
.server-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.server-info li {
  padding: 6px 0;
  border-bottom: 1px solid #222;
}

.server-info strong {
  color: #aaa;
  display: inline-block;
  width: 120px;
}

/* === Genel Tema === */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #111;
  color: #fff;
  display: flex;
}



/* === Main Content === */
.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  background: #1f1f1f;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
}

.dashboard {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* === Yetkili Grid === */
h2 {
  margin: 25px 0 10px;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.staff-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.staff-card:hover {
  background: #222;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #333;
}

.info {
  flex: 1;
}

.info strong {
  font-size: 15px;
  font-weight: 600;
  display: block;
}

.roles {
  margin-top: 5px;
}

.role {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin: 2px 3px 0 0;
  font-weight: 500;
  color: #fff;
}

/* Renkli roller */
.role-green { background: #2ecc71; }
.role-orange { background: #e67e22; }
.role-red { background: #e74c3c; }
.role-pink { background: #e84393; }
.role-blue { background: #3498db; }
.role-purple { background: #9b59b6; }
.role-yellow { background: #f1c40f; }
.role-gray { background: #7f8c8d; }

/* Avatar ve durum göstergesi */
.avatar-wrapper {
  position: relative;
  display: inline-block;
}
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #333;
}
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
}
.status-online { background: #2ecc71; }
.status-idle { background: #f1c40f; }
.status-dnd { background: #e74c3c; }
.status-offline { background: #7f8c8d; }

