/* worktrack — shared stylesheet */
:root {
  --navy:   #0f1942;
  --teal:   #1ab8a8;
  --teal2:  #14958a;
  --bg:     #f4f6fb;
  --card:   #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --error:  #dc2626;
  --border: #d1d5db;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI',
               'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Nav */
.nav {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
.nav-brand { font-weight: 700; font-size: 1.15rem; color: var(--teal); margin-right: auto; }
.nav a { color: #c7d2fe; text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: #fff; }
.nav-org { font-size: 0.85rem; color: #a5b4fc; }
.nav-user { font-size: 0.85rem; color: #cbd5e1; }
.nav-logout button {
  background: none; border: 1px solid #4b5563; color: #e2e8f0;
  padding: 0.25rem 0.75rem; border-radius: var(--radius);
  cursor: pointer; font-size: 0.8rem;
}
.nav-logout button:hover { background: #374151; }

/* Main */
.main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--teal); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.65rem 1.5rem;
  border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; text-align: center;
  transition: background 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal2); }
.btn-block { width: 100%; display: block; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: var(--error); }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }

/* Headings */
h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--navy); }

/* Placeholder sections */
.placeholder-section {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
}
.placeholder-section .label { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.placeholder-section .sub { font-size: 0.85rem; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Link */
.link { color: var(--teal); text-decoration: none; }
.link:hover { text-decoration: underline; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
