/* ======= GENERAL ======= */
body {
    font-family: Arial, sans-serif;
    background: #eef1f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1, h2 {
    margin: 0 0 10px 0;
}

/* ======= HEADER / FORM ======= */
.header {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header h2 {
    margin-bottom: 15px;
    text-align: center;
}

.header input[type="text"],
.header select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f7f9fc;
    transition: 0.2s;
}

.header input[type="text"]:focus,
.header select:focus {
    border-color: #4a90e2;
    background: #fff;
    outline: none;
}

.addBtn {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    border: none;
    color: white;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.addBtn:hover {
    background: #3578c3;
}

/* ======= TABLE ======= */
table {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

thead {
    background: #4a90e2;
    color: white;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e4e8;
    text-align: center;
}

tbody tr:nth-child(even) {
    background: #f4f7fa;
}

/* ======= STATUS COLORS ======= */
.status-neizpildits {
    color: #d9534f; /* sarkans */
    font-weight: bold;
}
/* Rinda, kura ir atzīmēta kā pabeigta */
.row-checked {
    background-color: #c9f7c9 !important;   /* gaiši zaļa */
    transition: background 0.3s;
}

.status-procesa {
    color: #f0ad4e; /* oranžs */
    font-weight: bold;
}

.status-izpildits {
    color: #5cb85c; /* zaļš */
    font-weight: bold;
}

/* ======= BUTTONS IN TABLE ======= */
button.toggleBtn {
    background: #5cb85c;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button.toggleBtn:hover {
    background: #4d9b50;
}

button.deleteBtn {
    background: #d9534f;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button.deleteBtn:hover {
    background: #c74744;
}
