body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    padding: 40px;
}

h1 {
    text-align: center;
}

#greeting {
    display: none;
    margin-left: 20px;
}

table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

thead {
    background-color: #036c5f;
    color: white;
}

th, td {
    padding: 12px 15px;
    text-align: center;
}

th {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

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

tbody tr:hover {
    background-color: #eef2f7;
}

.applied-yes {
    color: green;
    font-weight: bold;
}

.applied-no {
    color: red;
    font-weight: bold;
}

tr.missed td {
    color: #999;
}

#add-row-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 8px auto 0;
    transition: opacity 0.8s ease;
}

#add-row-container.autohide {
    opacity: 0;
}

#add-row-container.autohide button {
    pointer-events: none;
}

#delete-row-btn,
#add-row-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    background-color: #036c5f;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#delete-row-btn:hover,
#add-row-btn:hover {
    background-color: #024d44;
}

#delete-row-btn:active,
#add-row-btn:active {
    background-color: #013830;
}

.cell-edit-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #036c5f;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    padding: 0;
}

#shots_table,
#applied_shots_table,
#table-tabs,
#add-row-container,
#reset-container,
#reminder-container {
    display: none;
    justify-content: center;
}

#table-tabs {
    display: none;
    justify-content: flex-start;
    max-width: 800px;
    margin: 20px auto 0;
    gap: 0;
}

#table-tabs button {
    padding: 8px 24px;
    font-size: 14px;
    font-family: inherit;
    background: #e8edf2;
    color: #555;
    border: 1px solid #d0d7de;
    cursor: pointer;
    border-bottom: none;
}

#table-tabs button:first-child {
    border-radius: 6px 0 0 0;
}

#table-tabs button:last-child {
    border-radius: 0 6px 0 0;
}

#table-tabs button.active {
    background: #036c5f;
    color: #fff;
    border-color: #036c5f;
}

#setup-form-container {
    display: none;
    justify-content: center;
    padding: 40px 20px;
}

#setup-form {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

#setup-form h2 {
    margin: 0 0 20px;
    text-align: center;
    color: #036c5f;
}

#setup-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 16px;
    margin-bottom: 4px;
}

#setup-form label:first-of-type {
    margin-top: 0;
}

#setup-form input,
#setup-form select {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    color: inherit;
    box-sizing: border-box;
    height: 35px;
    background-color: #fff;
}

#setup-form select {
    -webkit-appearance: none;
    appearance: none;
}

#setup-form input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    color: #000;
}

#setup-form input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    color: #000;
}

#setup-form input:focus,
#setup-form select:focus {
    outline: none;
    border-color: #036c5f;
}

#setup-form button[type="submit"] {
    margin-top: 8px;
    padding: 10px;
    background-color: #036c5f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

#setup-form button[type="submit"]:hover {
    background-color: #024d44;
}

#reset-placeholder {
    display: none;
    min-height: 100vh;
    margin-top: 40px;
}

#reset-container {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
}

#reminder-container {
    text-align: center;
    margin-top: 16px;
}

#export-calendar-btn {
    padding: 6px 14px;
    background-color: #036c5f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
}

#export-calendar-btn:hover {
    background-color: #024d44;
}

#reset-btn {
    background: none;
    border: 1px solid #c0392b;
    border-radius: 4px;
    color: #c0392b;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
}

#reset-btn:hover {
    background: #c0392b;
    color: #fff;
}

#reset-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#reset-modal.open {
    display: flex;
}

#reset-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#reset-modal-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #c0392b;
}

#reset-modal-box p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

#reset-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#reset-cancel-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

#reset-cancel-btn:hover {
    background: #f0f0f0;
}

#reset-confirm-btn {
    padding: 8px 16px;
    background: #c0392b;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
}

#reset-confirm-btn:hover {
    background: #a93226;
}

@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
    }

    table {
        table-layout: fixed;
        width: calc(100vw - 16px);
        margin: 12px 8px;
    }

    th:nth-child(1) { width: 38%; }
    th:nth-child(2) { width: 12%; }
    th:nth-child(3) { width: 28%; }
    th:nth-child(4) { width: 22%; }

    th, td {
        padding: 8px 4px;
        font-size: 13px;
    }

    th {
        font-size: 11px;
    }
}