body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef1f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.planner-container {
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    color: #1a73e8;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 3px solid #1a73e8;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
    text-align: center;
}

.new-task-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Labels for form fields */
.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    font-size: 0.95em;
}

input[type="text"],
select {
    padding: 12px 15px;
    border: 1px solid #c8d3e6;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f7f9fc;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
}

input[type="text"]:focus,
select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

select {
    height: 44px;
    appearance: none; /* Remove default select arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a73e8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%00-13-5.4H18.4c-4.9%200-9.2%201.8-12.9%205.4A17.6%2017.6%200%200%000%2082.2c0%204.9%201.8%209.2%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095.1a17.6%2017.6%200%200%005.4-12.9c0-4.9-1.8-9.1-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 0.6em auto;
    padding-right: 35px; /* Make space for custom arrow */
}

.save-button { 
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, transform 0.1s;
    align-self: flex-end; /* Align the button to the right */
    width: auto; /* Allow button to size according to its content */
    min-width: 120px; /* Minimum width for the button */
    margin-top: 15px; /* More space above the button */
}

.save-button:hover {
    background-color: #145cb3;
}

.save-button:active {
    transform: translateY(1px);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px; /* More padding above tabs */
    border-top: 1px solid #eef1f6;
}

button { 
    padding: 10px 18px;
    border: 1px solid #c8d3e6;
    background-color: #f0f2f5;
    color: #555;
    cursor: pointer;
    font-size: 1em;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    margin-right: 0;
}

button:hover {
    background-color: #dfe3e8;
    color: #333;
}

.active-tab { 
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}

.active-tab:hover {
    background-color: #145cb3;
    border-color: #145cb3;
}

.task-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px; /* Increased margin to push it further down */
    font-size: 0.95em;
    overflow: hidden;
    border: 1px solid #c8d3e6;
    border-radius: 8px;
}

.task-table th,
.task-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eef1f6;
}

.task-table thead {
    background-color: #1a73e8;
    color: white;
    font-weight: 600; 
}

.task-table tbody tr:last-child td {
    border-bottom: none;
}

.task-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

.task-table tbody tr:hover {
    background-color: #e6f0ff;
    cursor: default;
}

.task-table .priority {
    font-weight: 600;
    text-transform: capitalize; /* Make sure priority text looks consistent */
}

.priority.high {
    color: #d93025;
}

.priority.medium {
    color: #fbbc04;
}

.priority.low {
    color: #188038;
}

.completed-task { /* Renamed from .completed to avoid conflict with row style */
    text-decoration: line-through;
    color: #888;
    background-color: #fbfbfb;
}

/* Styling for the checkbox column */
.task-table td:nth-child(5) { /* Targeting the 'Pabeigts' column */
    text-align: center;
}

/* Styling for the 'Dzēst' button */
.delete-button {
    padding: 6px 12px;
    background-color: #f44336; /* Red for delete action */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.delete-button:hover {
    background-color: #d32f2f;
}

/* Styling for the checkbox itself */
.task-table input[type="checkbox"] {
    transform: scale(1.2); /* Make checkbox slightly larger */
    margin: 0;
    vertical-align: middle;
}