/* ===================== */
/* DARK UI         */
/* By x0773l        */
/* ===================== */

:root {
  --bg: #0e0e17;
  --bg2: #161620;
  --primary: #6c6cff;
  --primary-dark: #5a5adf;
  --text: #e6e6ff;
  --muted: #a1a1b5;
  --card: #1b1b28;
  --card-border: #2a2a3b;
  --accent-glow: rgba(108, 108, 255, 0.4);
}

/* BACKGROUND & RESET */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* TOPBAR */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand a {
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
}

.username {
  color: var(--muted);
  font-size: 14px;
}

.logout-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
}

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.dashboard-header .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* GRID & CARDS */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}

.dash-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

/* ICON STYLE (SINKRON DENGAN ALL TOOLS) */
.dash-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  object-fit: contain;
  /* Filter glow tanpa mengubah warna asli ikon Lineal Color */
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.dash-card h3 {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-size: 20px;
}

.dash-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: 0.2s;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-primary.full {
  width: 100%;
}

/* FORMS & INPUTS */
.form-input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--text);
  margin-top: 5px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* PROGRESS BAR */
.progress-bar {
  height: 10px;
  background: var(--bg2);
  border-radius: 20px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.5s ease;
}

/* CODE BLOCK */
pre {
  background: #0c0c14;
  color: #b3d1ff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dash-card {
    align-items: center;
    text-align: center;
  }

  .dash-icon {
    margin-left: auto;
    margin-right: auto;
  }
}