:root{
    --bg:#f7f7f4;
    --text:#222;
    --accent:#6E8B3D;
    --muted:#888;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Inter,system-ui,sans-serif;

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:100vh;
    padding: 40px 0; /* Lisatud veidi ruumi üles ja alla, et pikk tabel ei kleebiks serva külge */
}

.container{
    width:min(90%,600px);
    text-align:center;
}

.emoji{
    font-size:60px;
    margin-bottom:20px;
}

h1{
    font-size:2.2rem;
    font-weight:600;
}

#counter{
    font-size:9rem;
    font-weight:800;
    color:var(--accent);
    margin:30px 0;
}

.divider{
    width:120px;
    height:2px;
    background:#ddd;
    margin:40px auto;
}

h2{
    font-size:1.1rem;
    color:var(--muted);
    font-weight:500;
}

#days{
    margin-top:18px;
    font-size:2.8rem;
    font-weight:700;
}

/* --- UUDSED STIILID VORMI JA TABELI JAOKS --- */

/* H3 pealkiri vormi kohal */
h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
    text-align: center;
}

/* Matcha logimise vormi ümbris */
.log-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 20px auto;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.log-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: -4px;
}

/* Sisendväljad ja rippmenüü */
.log-form input, .log-form select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e2e0;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.log-form input:focus, .log-form select:focus {
    border-color: var(--accent);
}

/* Aktiivne "Joodud" nupp */
.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
}

/* Lukus nupp (kui väljad täitmata) */
.btn:disabled {
    background-color: #e2e2e0;
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Kompaktne tabeli ümbris */
.table-wrapper {
    width: 100%;
    margin: 25px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.matcha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.matcha-table th {
    background: #fdfdfc;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.matcha-table th, .matcha-table td {
    padding: 12px 16px;
}

.matcha-table tbody tr {
    border-bottom: 1px solid #f7f7f5;
}

.matcha-table tbody tr:last-child {
    border-bottom: none;
}

/* Järjekorranumber ja kuupäev */
.matcha-table td strong {
    color: var(--accent);
}

.text-muted {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Hinnangu märgis (badge) */
.badge {
    background: #f0f4e8;
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* Kommentaari lahter lubab rea vahetust */
.comment-cell {
    white-space: normal;
    word-break: break-word;
    color: var(--text);
}
