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

:root {
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --accent-color: #1f7a5d; /* Dark green from screenshot */
  --accent-hover: #155e46;
  --check-bg: #d1fae5;
  --check-color: #1f7a5d;
  --border-color: #e5e7eb;
}

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

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

/* Card Container */
.card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  padding: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  padding: 3rem;
  max-width: 520px;
  width: 100%;
}

.card--centered {
  text-align: center;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card__sub {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card__sub code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #374151;
}

/* Success Check Icon */
.check-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--check-bg);
  color: var(--check-color);
  border-radius: 50%;
  font-size: 1.2rem;
}

.check svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.actions--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn--primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn--ghost:hover {
  background-color: #f9fafb;
}

/* Topbar */
.topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand__logo {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: bold;
}

.brand__name {
  font-weight: 600;
  font-size: 1.1rem;
}

.topbar__user {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.topbar__user a {
  color: var(--accent-color);
  text-decoration: none;
}

.topbar__user a:hover {
  text-decoration: underline;
}

/* Forms */
form {
  text-align: left;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

form input[type="text"],
form input[type="number"],
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fafafa;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(31, 122, 93, 0.1);
  background-color: #ffffff;
}

.row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.row .col {
  flex: 1;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Landing specific */
.hero {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero__inner {
  max-width: 600px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.features {
  list-style: none;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.features li {
  font-size: 0.95rem;
  color: var(--text-sub);
}

.features strong {
  color: var(--text-main);
}

.footer {
  padding: 2rem;
  font-size: 0.875rem;
  color: var(--text-sub);
}

/* ---------- Dashboard (Light Mode Premium) ---------- */
.page-dashboard {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.dashboard-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 20% 30%, rgba(31, 122, 93, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
  z-index: -1;
}

.dashboard-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 3rem;
  text-align: center;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.dashboard-sub {
  color: var(--text-sub);
  font-size: 1.1rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.insight-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(31, 122, 93, 0.2);
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.insight-category {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-color);
  color: var(--text-main);
}

.tag-priority { background: #fee2e2; color: #b91c1c; }
.tag-recruiting { background: #dbeafe; color: #1d4ed8; }
.tag-networking { background: #d1fae5; color: #047857; }
.tag-classes { background: #fef3c7; color: #b45309; }

.insight-urgency {
  font-size: 0.8rem;
  font-weight: 600;
}
.urgency-high { color: #b91c1c; }
.urgency-medium { color: #b45309; }
.urgency-low { color: var(--text-sub); }

.insight-subject {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-time {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.insight-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insight-section {
  display: flex;
  gap: 1rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.section-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.section-content h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.section-content p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.empty-state p {
  color: var(--text-sub);
}
