/* dsh-remote Portal Styles */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo { font-size: 1.5rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo span { background: var(--primary); padding: 2px 8px; border-radius: 6px; font-size: .8rem; color: #fff; }

nav a { margin-left: 24px; color: var(--text-muted); font-size: .9rem; }
nav a:hover { color: var(--text); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-input); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--text-muted); }
input, select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border .2s;
}
input:focus { border-color: var(--primary); }
input::placeholder { color: var(--text-muted); }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .85rem;
}
.alert-error { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.alert-success { background: rgba(34,197,94,.15); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.alert-info { background: rgba(79,70,229,.15); color: var(--primary); border: 1px solid rgba(79,70,229,.3); }

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 16px; background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.hero .btn { padding: 14px 32px; font-size: 1rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 48px 0; }
.feature { text-align: center; padding: 32px; }
.feature .icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* Auth pages */
.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; padding: 40px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; }
.auth-card .form-footer { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: .85rem; }

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.sidebar .user-info { padding: 0 16px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar .user-info .name { font-weight: 600; }
.sidebar .user-info .email { color: var(--text-muted); font-size: .8rem; }
.sidebar nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: .9rem;
  border-left: 3px solid transparent;
  margin: 0;
}
.sidebar nav a:hover, .sidebar nav a.active { color: var(--text); background: var(--bg-input); border-left-color: var(--primary); }
.main-content { padding: 32px; }
.main-content h2 { margin-bottom: 24px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 20px; text-align: center; }
.stat-card .value { font-size: 2rem; font-weight: 700; }
.stat-card .label { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

/* Token list */
.token-list { list-style: none; }
.token-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.token-item .token-value { font-family: monospace; font-size: .85rem; color: var(--text-muted); }
.token-item .token-actions { display: flex; gap: 8px; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; min-width: 400px; max-width: 90vw; }
.modal h3 { margin-bottom: 16px; }
.modal .form-footer { text-align: right; margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }

/* Footer */
footer { text-align: center; padding: 32px; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); margin-top: 48px; }

/* Responsive */
@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero h1 { font-size: 2rem; }
}
