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

/* ==========================================================================
   Manyou Admin Hub — Minimalist Light Swiss Design System (Vanilla CSS)
   ========================================================================== */

:root {
  --bg-base: hsl(240, 12%, 97%);             /* Soft light grey `#f4f4f5` */
  --bg-surface: hsl(0, 0%, 100%);           /* Pure white `#ffffff` */
  --bg-surface-hover: hsl(240, 5%, 96%);     /* Soft off-white hover `#f1f1f3` */
  --bg-card: hsl(0, 0%, 100%);              /* Card background */
  
  --accent-active: hsl(142, 76%, 36%);       /* Safe emerald for active state */
  --accent-active-bg: hsl(142, 70%, 94%);    /* Muted soft green badge background */
  
  --border-subtle: hsl(240, 6%, 90%);        /* Fine gray border `#e4e4e7` */
  --border-hover: hsl(240, 5%, 70%);         /* Pronounced gray border on hover */
  
  --text-primary: hsl(240, 10%, 4%);        /* Deep near-black `#09090b` */
  --text-secondary: hsl(240, 5%, 35%);      /* Standard slate gray `#4b5563` */
  --text-muted: hsl(240, 5%, 55%);          /* Muted gray for helpers/labels */
  
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* App Layout Container */
.hub-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header Section */
header {
  margin-bottom: 3.5rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-secondary);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.5;
}

/* Grid Cards Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Minimalist Swiss Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* Card Header Details */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-icon {
  color: var(--text-secondary);
  background: var(--bg-base);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.status-badge.status-active {
  background-color: var(--accent-active-bg);
  color: var(--accent-active);
  border-color: hsla(142, 76%, 36%, 0.15);
}

.status-badge.status-planned {
  background-color: var(--bg-base);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Navigation Actions inside Cards */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  width: 100%;
}

/* Active links styled in deep solid black/charcoal with light elements */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-surface);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

/* Muted disabled look with no pointer actions */
.btn-disabled {
  background: var(--bg-base);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-icon {
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* Responsive Grid Details */
@media (max-width: 640px) {
  .hub-wrapper {
    padding: 2.5rem 1.25rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  .grid-container {
    gap: 1rem;
  }
}
