:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #1e293b;
  --text-desc: #64748b;
  --text-muted: #94a3b8;
  
  --brand-navy: #1a1f36;
  --brand-red: #e63946;
  --brand-blue: #4f7df9;
  
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

html {
  font-family: 'Inter', sans-serif;
  background-color: #f1f5f9;
  color: var(--text-main);
  min-height: 100vh;
}

body {
  min-height: 100vh;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  background-color: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

/* Header */
.header {
  text-align: center;
  padding: 20px 0 32px;
}

.logo-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}

.logo-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
  animation: pulse-ring 3s ease-in-out infinite;
}

.logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #fff;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tagline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-red);
}

.divider {
  width: 40px;
  height: 3px;
  background: var(--brand-navy);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Search */
.search-container {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 12px 0 24px;
  z-index: 10;
  transition: border-bottom 0.2s;
}

/* Add a subtle line when search is sticky/scrolling */
.search-container.is-sticky {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.search-wrap input:focus {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(79, 125, 249, 0.1);
}

/* Dashboard List */
.dashboard-list {
  display: grid;
  gap: 16px;
}

/* Button-style Cards */
.dash-button {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Staggered animation */
  opacity: 0;
  transform: translateY(10px);
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.dash-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-navy);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.dash-button:hover, .dash-button:active {
  transform: translateY(-2px);
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-hover);
}

.dash-button:hover::after, .dash-button:active::after {
  transform: scaleX(1);
}

.dash-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
  display: block;
}

.dash-desc {
  font-size: 13px;
  color: var(--text-desc);
  line-height: 1.5;
  display: block;
}

/* Loading & Empty States */
.loader {
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f1f5f9;
  border-top-color: var(--brand-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty i {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 0 40px;
  margin-top: 20px;
}

.quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-desc);
  margin-bottom: 12px;
  font-weight: 500;
}

.copyright {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Section Title */
.section-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 10px 0 16px;
  padding-left: 4px;
}
