/* ============================================
   DPS MEDIA PORTAAL - PREMIUM DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand colors */
  --bg-base: #0a0a14;
  --bg-card: #0f0f1e;
  --bg-elevated: #15152a;
  --bg-input: rgba(255,255,255,0.04);

  --border: rgba(99,102,241,0.15);
  --border-strong: rgba(99,102,241,0.3);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #22d3ee;
  --gradient: linear-gradient(135deg,#22d3ee 0%,#6366f1 50%,#8b5cf6 100%);
  --gradient-btn: linear-gradient(135deg,#6366f1,#8b5cf6);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 8px 30px rgba(99,102,241,0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(34,211,238,0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ============= HEADER ============= */
.dps-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.dps-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.dps-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dps-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.dps-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.dps-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.dps-nav a:hover {
  color: var(--text-primary);
  background: rgba(99,102,241,0.1);
}

.dps-nav a.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.15);
}

.dps-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.dps-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.dps-logout {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.dps-logout:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

/* ============= LAYOUT ============= */
.dps-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dps-page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dps-page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ============= CARDS ============= */
.dps-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.dps-card:hover {
  border-color: var(--border-strong);
}

.dps-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dps-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(99,102,241,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ============= GRID ============= */
.dps-grid {
  display: grid;
  gap: 20px;
}
.dps-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dps-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dps-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============= STATS ============= */
.dps-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.dps-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.dps-stat:hover::before { opacity: 1; }

.dps-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dps-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.dps-stat-value.accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dps-stat-sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ============= BUTTONS ============= */
.dps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.dps-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.5);
}

.dps-btn-secondary {
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text-primary);
}

.dps-btn-secondary:hover {
  background: rgba(99,102,241,0.18);
  transform: translateY(-1px);
  box-shadow: none;
}

.dps-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}

.dps-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.dps-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ============= FORMS ============= */
.dps-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.dps-input,
.dps-textarea,
.dps-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.15s ease;
}

.dps-input:focus,
.dps-textarea:focus,
.dps-select:focus {
  border-color: var(--accent-primary);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.dps-input::placeholder { color: var(--text-muted); }

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

/* ============= BADGES ============= */
.dps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dps-badge.success { background: rgba(34,197,94,0.15); color: #86efac; }
.dps-badge.warning { background: rgba(245,158,11,0.15); color: #fcd34d; }
.dps-badge.info    { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.dps-badge.danger  { background: rgba(239,68,68,0.15); color: #fca5a5; }
.dps-badge.muted   { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ============= ALERTS ============= */
.dps-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dps-alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.dps-alert.warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.dps-alert.danger  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.dps-alert.info    { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: #a5b4fc; }

/* ============= TABLES ============= */
.dps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dps-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.dps-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.dps-table tr:last-child td { border-bottom: none; }
.dps-table tr:hover td { background: rgba(99,102,241,0.04); }

/* ============= PROGRESS ============= */
.dps-progress {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  overflow: hidden;
  margin: 8px 0;
}

.dps-progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============= LOGIN PAGE ============= */
.dps-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(99,102,241,0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(34,211,238,0.1) 0%, transparent 50%);
}

.dps-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.dps-auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-weight: 800;
  font-size: 20px;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dps-fade-in { animation: fadeIn 0.4s ease forwards; }

/* ============= MOBILE ============= */
@media (max-width: 768px) {
  .dps-header-inner { padding: 12px 16px; gap: 16px; flex-wrap: wrap; }
  .dps-nav { order: 3; width: 100%; overflow-x: auto; gap: 2px; }
  .dps-nav a { white-space: nowrap; font-size: 13px; padding: 6px 10px; }
  .dps-user span { display: none; }
  .dps-container { padding: 20px 16px; }
  .dps-page-title { font-size: 22px; }
  .dps-card { padding: 18px; border-radius: var(--radius-md); }
  .dps-auth-card { padding: 28px 24px; }
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }
