/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface2:  #1c2128;
  --border:    #30363d;
  --accent:    #58a6ff;
  --accent2:   #3fb950;
  --text:      #e6edf3;
  --text-muted:#8b949e;
  --danger:    #f85149;
  --glow:      rgba(88,166,255,0.15);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== HEADER ===== */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px var(--glow);
}

.dashboard-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
}

.status-dot {
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.status-text { color: var(--accent2); font-weight: 500; }

.clock {
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  margin-left: 6px;
}

/* ===== MAIN ===== */
.dashboard-main {
  flex: 1;
  padding: 32px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== APPS GRID ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  overflow: hidden;
}

.app-card:not(.app-card--placeholder):hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
  cursor: pointer;
}

.app-card--placeholder {
  border-style: dashed;
  opacity: 0.45;
}

.app-icon {
  font-size: 36px;
  min-width: 48px;
  text-align: center;
}

.app-info { flex: 1; }

.app-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-arrow {
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.app-card:hover .app-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.app-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(63,185,80,0.15);
  color: var(--accent2);
  border: 1px solid var(--accent2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
}

/* ===== FOOTER ===== */
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
