/* Dillston Employee Portal — minimal, readable */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --border: #30363d;
  --error: #f85149;
  --success: #3fb950;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 400px;
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.user-name {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.logout-form button:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.main {
  flex: 1;
  padding: 2rem 0;
}

.flash-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  max-width: 960px;
  margin: 0 auto 0.5rem;
}

.flash.error {
  background: rgba(248, 81, 73, 0.15);
  color: var(--error);
}

.flash.success {
  background: rgba(63, 185, 80, 0.15);
  color: var(--success);
}

.landing, .login-page {
  text-align: center;
  padding: 3rem 0;
}

.landing h1, .login-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.tagline {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

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

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

.login-form {
  text-align: left;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.change-password-page {
  padding: 2rem 0;
}

.change-password-page h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.form-hint {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dashboard h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.container-dashboard {
  max-width: 720px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-icon-name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.app-icon-desc {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.app-icon-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.app-icon-link:hover {
  text-decoration: underline;
}

.app-icon-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.site-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .container {
  text-align: center;
}
