/* ======================================== */
/* BASE & BACKGROUND                        */
/* ======================================== */
body.dashboard {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1b2f, #10111d);
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ======================================== */
/* DASHBOARD CONTAINER                       */
/* ======================================== */
.dashboard.container {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* ======================================== */
/* SIDEBAR                                  */
/* ======================================== */
.dashboard .sidebar {
  width: 250px;
  min-width: 250px;
  background: rgba(20, 21, 35, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.dashboard .sidebar h2 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #7289da, #9b6bff, #5865f2);
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 25px;
}

.dashboard .sidebar button {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  font-size: 1rem;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard .sidebar button:hover {
  background: rgba(88,101,242,0.2);
  color: #00f0ff;
  transform: translateX(4px);
}

.dashboard .sidebar .logout {
  margin-top: auto;
  background: #ff3366;
  text-align: center;
}

.dashboard .sidebar .logout:hover {
  background: #ff1a5c;
}

/* ======================================== */
/* MAIN CONTENT                             */
/* ======================================== */
.dashboard .main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ======================================== */
/* PAGE HEADINGS                             */
/* ======================================== */
.dashboard .main-content h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #9b6bff, #00f0ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* ======================================== */
/* CARD BUTTONS (SERVER, CATEGORY)          */
/* ======================================== */
.card-btn {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
}

.card-btn:hover {
  background: rgba(88,101,242,0.15);
  transform: translateY(-3px);
  border-color: rgba(88,101,242,0.4);
}

/* ======================================== */
/* SERVER GRID                               */
/* ======================================== */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.server-card {
  background: #1b1d32;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.server-card:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #202240, #1a1b2f);
  border-color: #00f0ff;
}

.server-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
  border: 3px solid #00f0ff;
}

.server-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  margin-top: 5px;
}

/* ======================================== */
/* EMBED EDITOR                             */
/* ======================================== */
.embed-editor {
  background: rgba(47, 49, 54, 0.9);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.embed-editor label {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #b5b5b5;
}

.embed-editor input,
.embed-editor textarea,
.embed-editor select {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: #202225;
  color: #fff;
  font-size: 0.95rem;
  transition: border 0.2s ease;
}

.embed-editor input:focus,
.embed-editor textarea:focus,
.embed-editor select:focus {
  outline: none;
  border: 1px solid #5865f2;
}

/* ======================================== */
/* EMBED PREVIEW                            */
/* ======================================== */
.embed-preview {
  background: #2f3136;
  border-left: 5px solid #5865f2;
  border-radius: 12px;
  padding: 15px 20px;
  color: #fff;
  margin-top: 10px;
}

.embed-preview h4 {
  margin: 0;
  color: #00f0ff;
  font-size: 1.1rem;
  font-weight: 700;
}

.embed-preview p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #ddd;
}

/* ======================================== */
/* PAGE TOGGLE                              */
/* ======================================== */
.page {
  display: none;
  transition: opacity 0.3s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

.category-page {
  display: none;
}
.category-page.active {
  display: block;
}

/* ======================================== */
/* RESPONSIVE                               */
/* ======================================== */
@media (max-width: 768px) {
  .dashboard.container {
    flex-direction: column;
  }

  .dashboard .sidebar {
    flex-direction: row;
    width: 100%;
    height: 60px;
    padding: 5px 10px;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
  }

  .dashboard .sidebar h2 {
    display: none;
  }

  .dashboard .sidebar button {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    margin: 0 5px;
  }

  .dashboard .main-content {
    padding-bottom: 80px;
  }

  .server-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}