﻿/* Shared styles adapted from FiluetShip Console */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&family=Source+Code+Pro:wght@400;600&display=swap');

:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #0ea5e9;
  --accent-2: #22c55e;
  --line: #e5e7eb;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.menu a.active {
  background: rgba(14,165,233,0.2);
  color: #e0f2fe;
  border: 1px solid rgba(14,165,233,0.35);
}

.sidebar .muted {
  color: #94a3b8;
}

.main {
  padding: 24px 28px 48px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.pill {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
  margin-right: 6px;
}

.btn {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
  cursor: pointer;
}

.btn.primary {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

.btn.danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th, .table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.badge-ok { color: var(--accent-2); font-weight: 600; }
.badge-warn { color: var(--warn); font-weight: 600; }
.badge-bad { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); }

.input,
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: #fff;
}

.inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.section-title {
  font-size: 20px;
  margin: 0 0 12px;
}

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(380px, 92vw);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.alert.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.input-date {
  width: 160px;
}

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; }
  .topbar { grid-template-columns: 1fr; }
}
