/* style.css */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
}

.container {
    width: 95%;
    max-width: 800px;
    margin: 40px auto;
}

h1 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 30px;
}

h2 {
    margin-top: 0;
    color: #374151;
}

.card {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.total {
    background: #e8f5e9;
    border-left: 5px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    color: #166534;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f3f4f6;
    color: #374151;
}

tr:hover {
    background: #f9fafb;
}

.delete {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.delete:hover {
    text-decoration: underline;
}

.date-form {
    display: flex;
    gap: 10px;
    align-items: end;
}

.date-form div {
    flex: 1;
}

.date-form input {
    margin-bottom: 0;
}

.date-form button {
    width: auto;
    min-width: 100px;
}

@media (max-width: 600px) {

    .container {
        width: 92%;
        margin: 20px auto;
    }

    .card {
        padding: 18px;
    }

    .date-form {
        display: block;
    }

    .date-form button {
        width: 100%;
        margin-top: 15px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 9px 6px;
    }
}
