* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1e1e1e;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Login Page */
.login-box {
  max-width: 400px;
  margin: 100px auto;
  background: #2b2b2b;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #5865F2;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #b9bbbe;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1e1e1e;
  border: 1px solid #3e3e3e;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5865F2;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  width: 100%;
  padding: 12px;
  background: #5865F2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #4752C4;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #5865F2;
}

.discord-btn:hover {
  background: #4752C4;
}

.btn-danger {
  background: #ed4245;
}

.btn-danger:hover {
  background: #c03537;
}

.btn-small {
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
}

.error {
  color: #ed4245;
  text-align: center;
  margin-top: 10px;
}

.success {
  color: #3ba55d;
  text-align: center;
  margin-top: 10px;
}

/* Header */
header {
  background: #2b2b2b;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #5865F2;
}

header .logout-btn {
  padding: 8px 20px;
  background: #ed4245;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

header .logout-btn:hover {
  background: #c03537;
}

/* Server Grid */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.server-card {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.server-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.server-card h3 {
  margin-bottom: 10px;
}

.server-card p {
  color: #b9bbbe;
  font-size: 14px;
}

.server-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 10px;
}

.badge-success {
  background: #3ba55d;
  color: white;
}

.badge-warning {
  background: #faa61a;
  color: white;
}

.server-card .btn {
  margin-top: 10px;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-success {
  background: #3ba55d;
}

.btn-success:hover {
  background: #2d8049;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Config Page */
.config-nav {
  background: #2b2b2b;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.config-nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 10px 20px;
  background: #3e3e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: #4e4e4e;
}

.nav-btn.active {
  background: #5865F2;
}

.config-section {
  background: #2b2b2b;
  padding: 30px;
  border-radius: 8px;
  display: none;
}

.config-section.active {
  display: block;
}

.config-section h2 {
  margin-bottom: 20px;
  color: #5865F2;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3e3e3e;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #5865F2;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.reaction-role-list {
  margin-top: 20px;
}

.reaction-role-item {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reaction-role-item span {
  color: #b9bbbe;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #b9bbbe;
}

.info-box {
  background: #3e3e3e;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #b9bbbe;
  border-left: 4px solid #5865F2;
}
