/* GR-East-Sys Internal Portal — 2026 */

:root {
  --pri: #1a3a5c; --pri2: #2a5a8c; --acc: #e8831a;
  --bg: #f0f2f5; --card: #fff; --text: #333; --muted: #889;
  --danger: #d44; --success: #2a8;
  --radius: 8px; --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg); color: var(--text); min-height:100vh; line-height:1.6;
}

/* ===== NAV ===== */
.topnav {
  background: var(--pri); color: #fff; display:flex; align-items:center;
  justify-content:space-between; height:56px; padding:0 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); position:sticky; top:0; z-index:100;
}
.nav-brand { font-size:18px; font-weight:700; letter-spacing:1px; }
.nav-brand span { color: var(--acc); }
.nav-links { display:flex; gap:4px; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration:none; padding:8px 14px;
  border-radius:6px; font-size:13px; transition: all 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-links a.logout-link { color: #faa; }
.nav-links a.logout-link:hover { background: rgba(255,80,80,0.2); }

/* ===== CONTAINER ===== */
.container { max-width: 1060px; margin: 0 auto; padding: 32px 24px; }

/* ===== CARD ===== */
.card {
  background: var(--card); padding: 28px; border-radius: var(--radius);
  margin-bottom: 24px; box-shadow: var(--shadow);
  border: 1px solid #e8eaed;
}
.card h2, .card h3 { margin-top:0; color: var(--pri); font-weight:600; }
.card h2 { font-size:20px; margin-bottom:16px; border-bottom:2px solid #eee; padding-bottom:12px; }
.card h3 { font-size:16px; margin-bottom:12px; }

/* ===== LOGIN PAGE ===== */
.login-container {
  display:flex; align-items:center; justify-content:center; min-height:80vh;
}
.login-card {
  background: var(--card); padding: 40px; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1); width:420px; max-width:90vw;
  border: 1px solid #e0e3e8;
}
.login-card .logo { text-align:center; margin-bottom:24px; }
.login-card .logo h1 { font-size:22px; color: var(--pri); margin-bottom:4px; }
.login-card .logo p { color: var(--muted); font-size:13px; }
.login-card label { font-size:13px; font-weight:600; color:#555; display:block; margin-top:14px; margin-bottom:4px; }
.login-card input[type="text"],
.login-card input[type="password"] {
  width:100%; padding:12px; border:1px solid #d0d4da; border-radius:6px;
  font-size:15px; transition: border 0.2s; background:#fafbfc;
}
.login-card input:focus { outline:none; border-color: var(--pri2); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.login-card button {
  width:100%; padding:13px; margin-top:20px; background: var(--pri); color:#fff;
  border:none; border-radius:6px; font-size:16px; font-weight:600; cursor:pointer;
  transition: background 0.2s;
}
.login-card button:hover { background: var(--pri2); }
.login-card .error { background: #fff0f0; color: var(--danger); padding:10px 14px; border-radius:6px; margin-bottom:16px; font-size:14px; }
.login-card .hint { text-align:center; font-size:12px; color: var(--muted); margin-top:16px; }

/* ===== DASHBOARD ===== */
.page-title { font-size:26px; font-weight:700; color: var(--pri); margin-bottom:8px; }
.page-subtitle { color: var(--muted); margin-bottom:24px; }
.welcome-badge {
  display:inline-block; background: #e8f0fa; color: var(--pri);
  padding:4px 14px; border-radius:20px; font-size:14px; font-weight:600;
}

.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card {
  background: var(--card); padding:20px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align:center; border:1px solid #e8eaed;
}
.stat-card .num { font-size:32px; font-weight:700; color: var(--pri); }
.stat-card .label { font-size:12px; color: var(--muted); margin-top:4px; text-transform:uppercase; letter-spacing:1px; }

/* ===== TABLE ===== */
table { width:100%; border-collapse:collapse; font-size:14px; }
table th {
  background: #f6f8fa; padding:11px 14px; text-align:left;
  font-size:12px; text-transform:uppercase; letter-spacing:0.5px;
  color: var(--muted); border-bottom:2px solid #e0e4e8;
}
table td { padding:11px 14px; border-bottom:1px solid #eee; }
table tbody tr:hover { background: #f8fafc; }

/* ===== FORM ===== */
input[type="text"], input[type="password"], input[type="file"] {
  padding:10px 14px; border:1px solid #d0d4da; border-radius:6px; font-size:14px;
}
input:focus { outline:none; border-color: var(--pri2); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
button, .btn {
  display:inline-block; padding:10px 22px; font-size:14px; font-weight:600;
  border:none; border-radius:6px; cursor:pointer; transition: all 0.15s;
}
.btn-primary { background: var(--pri); color:#fff; }
.btn-primary:hover { background: var(--pri2); }
.btn-sm { padding:6px 14px; font-size:12px; }

/* ===== UTILS ===== */
a { color: var(--pri2); text-decoration:none; }
a:hover { text-decoration:underline; }
.badge {
  display:inline-block; padding:3px 10px; border-radius:12px;
  font-size:11px; font-weight:600; letter-spacing:0.3px;
}
.badge-dept { background: #e8f0fa; color: var(--pri); }
.badge-pos { background: #fef3e4; color: #b86e10; }
.text-muted { color: var(--muted); font-size:13px; }
.alert-success { background: #eafaf2; color: var(--success); padding:12px 16px; border-radius:6px; margin-bottom:16px; }
.mt { margin-top:16px; }
.mb { margin-bottom:16px; }

.footer {
  text-align:center; padding:24px; color: var(--muted); font-size:12px;
  border-top:1px solid #e8eaed; margin-top:48px;
}
