/* =======================
   GroundOpsTool Light Theme
======================= */

/* Reset & global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f8fafc; /* šviesus fonas */
  color: #1f2937; /* tamsiai pilkas tekstas */
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #e2e8f0; /* šviesiai pilkas header */
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.8rem;
  color: #2563eb;
}

header a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

header a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 16px;
  display: grid;
  grid-gap: 24px;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Typography */
h2, h3 {
  margin-bottom: 16px;
  color: #1f2937;
}

p, span, td, th {
  font-size: 0.9rem;
  color: #374151;
}

/* Grid for form inputs */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 12px;
  margin-bottom: 16px;
}

input, select, button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 6px #2563eb33;
}

button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  background: #1e40af;
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.ok { background: #16a34a; color: #fff; }
.warn { background: #d97706; color: #fff; }
.bad { background: #b91c1c; color: #fff; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

th {
  background: #f1f5f9;
  color: #2563eb;
}

td {
  background: #ffffff;
}

/* Preformatted / flight list */
pre {
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: #1f2937;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  max-height: 200px;
  overflow: auto;
}

/* Charts */
canvas {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px;
  margin-top: 16px;
}

/* Export button */
button.export {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
}

button.export:hover {
  background: #1e40af;
}

/* Footer / small links */
.footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 16px;
  color: #6b7280;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
