* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 1rem;
}

main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1rem;
}

.warning.hidden {
    display: none;
}

#hours-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="password"] {
    padding: 1rem;
    font-size: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007aff;
}

button {
    padding: 1rem;
    font-size: 1.25rem;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

button:active {
    background: #0056b3;
}

#message {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
}

#message:empty {
    display: none;
}

#message.success {
    background: #d4edda;
    color: #155724;
}

#message.error {
    background: #f8d7da;
    color: #721c24;
}

#summary {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

#monthly-total {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

#monthly-total span {
    color: #007aff;
}

#entries-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

#entries-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

#entries-list li:last-child {
    border-bottom: none;
}

.entry-date {
    color: #666;
    font-size: 0.9rem;
}

.entry-hours {
    font-weight: 600;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content h2 {
    text-align: center;
    color: #333;
}
