* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f0f14;
  color: #ffffff;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #15151d;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.sidebar p {
  color: #9b9ba7;
}

.main {
  flex: 1;
  padding: 30px;
}

.topbar {
  margin-bottom: 25px;
}

.topbar h2 {
  font-size: 30px;
  margin-bottom: 5px;
}

.topbar p {
  color: #9b9ba7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: #171922;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
}

.stat-card h3 {
  color: #b8b8c7;
  font-size: 16px;
  margin-bottom: 12px;
}

.stat-card p {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

.actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.action-btn,
form button {
  background: #fc0f1c;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.action-btn:hover,
form button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.form-section {
  margin-bottom: 20px;
}

.form-section h3 {
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.txadmin-btn {
  display: block;
  margin-top: 20px;
  padding: 14px;
  text-align: center;
  background: #fc0f1c;
  color: white;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.2s ease;
}

.txadmin-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

input,
textarea,
select {
  width: 100%;
  background: #10131a;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hidden {
  display: none;
}

.result-box {
  margin-top: 18px;
  padding: 15px;
  border-radius: 12px;
  background: #10131a;
  border: 1px solid rgba(255,255,255,0.06);
}

.result-box h4 {
  margin-bottom: 10px;
  color: #fc0f1c;
}

.result-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-item:last-child {
  border-bottom: none;
}

.small-muted {
  color: #9b9ba7;
  font-size: 14px;
  margin-top: 4px;
}

.case-link {
  color: #fc0f1c;
  text-decoration: none;
  font-weight: 700;
}

.case-link:hover {
  text-decoration: underline;
}

.topbar {
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #171922;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 14px;
}

.logout-btn {
  background: #fc0f1c;
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.logout-btn:hover {
  opacity: 0.95;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f14;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: #171922;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.login-logo {
  width: 160px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px auto;
}

.login-card h1 {
  margin-bottom: 12px;
}

.login-card p {
  color: #9b9ba7;
  margin-bottom: 22px;
}

.discord-login-btn {
  display: inline-block;
  width: 100%;
  background: #5865f2;
  color: white;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
}