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

  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    padding: 2rem 1rem;
  }

a:link { color: #9b9bd6; } 
a:visited { color: #9b9bd6; } 
a:hover { color: red; } 
a:active { color: yellow; }


  h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #58a6ff;
    margin-bottom: .4rem;
  }

  .subtitle {
    text-align: center;
    font-size: .9rem;
    color: #8b949e;
    margin-bottom: 2rem;
  }

  .card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.8rem 2rem;
    max-width: 680px;
    margin: 0 auto 2rem;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
  }

  label {
    display: block;
    font-size: .82rem;
    color: #8b949e;
    margin-bottom: .35rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  input[type="date"],
  input[type="number"] {
    width: 100%;
    padding: .55rem .75rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
    transition: border-color .2s;
  }
  input:focus { outline: none; border-color: #58a6ff; }

  button[type="submit"] {
    width: 100%;
    margin-top: 1.2rem;
    padding: .65rem 1rem;
    background: #238636;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
  }
  button[type="submit"]:hover { background: #2ea043; }

  .error {
    background: #3d1f1f;
    border: 1px solid #f85149;
    color: #f85149;
    border-radius: 6px;
    padding: .7rem 1rem;
    margin-top: 1rem;
  }

  .info-box {
    background: #1c2330;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    font-size: .85rem;
    color: #8b949e;
    line-height: 1.6;
  }
  .info-box strong { color: #c9d1d9; }

  .table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
  }

  thead th {
    background: #21262d;
    color: #58a6ff;
    padding: .65rem 1rem;
    text-align: left;
    border-bottom: 2px solid #30363d;
    white-space: nowrap;
  }

  tbody tr:nth-child(even) { background: #161b22; }
  tbody tr:nth-child(odd)  { background: #0d1117; }
  tbody tr:hover           { background: #1c2330; }

  td {
    padding: .5rem 1rem;
    border-bottom: 1px solid #21262d;
    white-space: nowrap;
  }

  td.nr     { color: #8b949e; text-align: right; width: 50px; }
  td.date   { color: #7ee787; font-weight: 600; }
  td.time   { color: #ffa657; }
  td.day    { color: #d2a8ff; }
  td.total  { color: #8b949e; font-size: .8rem; text-align: right; }

  .base-date {
    text-align: center;
    color: #8b949e;
    font-size: .85rem;
    margin-bottom: 1rem;
  }
  .base-date strong { color: #c9d1d9; }

  @media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; }
  }
