:root {
  --bg-dark: #0a111e;
  --bg-card: #141e30;
  --accent-blue: #0072ff;
  --accent-cyan: #00c6ff;
  --accent-emerald: #00e676;
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --danger: #ff5252;
  --border-color: #202e46;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}
.text-danger {
  color: var(--danger) !important;
}
.text-success {
  color: var(--accent-emerald) !important;
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

/* LOGIN SCREEN */
.screen-container {
  width: 100vw;
  min-height: 100vh;
}

#login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #14233c 0%, #0a111e 100%);
}

.login-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.brand h2 {
  font-size: 24px;
}
.brand h2 span {
  color: var(--accent-cyan);
}

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  background: #0d1626;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--accent-cyan);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 15px;
  text-align: center;
}

/* MAIN DASHBOARD LAYOUT */
#app-screen {
  display: flex;
}

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  height: 100vh;
  position: fixed;
}

.menu {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(0, 198, 255, 0.1);
  color: var(--accent-cyan);
}

.btn-logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-logout:hover {
  background: var(--danger);
  color: #fff;
}

.main-content {
  margin-left: 260px;
  flex-grow: 1;
  padding: 40px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.user-badge {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  margin-right: 6px;
}

/* CARDS & DASHBOARD */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.balance-card {
  background: linear-gradient(135deg, #14243b 0%, #0d192b 100%);
  border: 1px solid rgba(0, 198, 255, 0.2);
}

.balance-card h2 {
  font-size: 32px;
  color: var(--accent-cyan);
  margin: 15px 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.stat-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.stat-group h4 {
  font-size: 18px;
}

.chart-card {
  margin-top: 20px;
}
.chart-wrapper {
  height: 260px;
  margin-top: 15px;
}

/* FORMS & TABLES */
.form-card {
  max-width: 550px;
  margin: 0 auto;
}

.qris-box {
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  display: inline-block;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
}
/* --- LOGIN PAGE STYLING --- */
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  margin: 0;
}

.login-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.5),
    0 8px 10px -6px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-card p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-login {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  margin: 0;
}
