/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #dfd5d5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 40px 20px 20px 20px;
    background: #f5f6fa;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #222;
    font-weight: 500;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    background: #fff;
    color: #222;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: 15px;
    padding: 10px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    transition: background 0.2s;
}

button:hover {
    background-color: #2563eb;
}

canvas {
    margin-top: 30px;
}

#entries-list {
    list-style-type: none;
    padding: 0;
    border: 1px solid #4c7ee2;
    min-height: 50px;
    background: #fff;
    border-radius: 8px;
}

#entries-list li {
    cursor: pointer;
    padding: 7px 10px;
    margin: 5px 0;
    background-color: #f3f6fd;
    border-radius: 4px;
    color: #222;
    font-size: 1rem;
}

#entries-list li:hover {
    background-color: #e0e7ff;
}

#edit-form {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 8px;
}

#edit-form button {
    margin-top: 10px;
}

#cancel-edit {
    background-color: #dc3545;
    margin-left: 10px;
}

#cancel-edit:hover {
    background-color: #c82333;
}

#clear-entries {
    display: block; /* Ensures the button is on its own line */
    width: 100%; /* Makes the button full width */
    background-color: #dc3545;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px; /* Adds some space below the button */
    border: 1px solid #4c7ee2;
    font-weight: 600;
}

#clear-entries:hover {
    background-color: #c82333;
}

#caffeine-chart {
    width: 100%;
    height: 320px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.10);
    margin-top: 30px;
    padding: 12px;
    display: block;
}

#delete-entry {
    background-color: #dc3545;
    color: white;
    margin-top: 10px;
    display: block; /* Ensure it's on its own line */
    width: 100%; /* Make it full width like other buttons */
    border-radius: 6px;
    font-weight: 600;
}

#delete-entry:hover {
    background-color: #c82333;
}

#delete-entry:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.warning {
    background-color: #fef3c7;
    color: #b45309;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.limit-setting {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#caffeine-limit {
    width: 60px;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    color: #222;
}

#save-limit {
    padding: 6px 14px;
    margin-top: 0;
    background: #3b82f6;
    border-radius: 6px;
    font-weight: 600;
}

#save-limit:hover {
    background: #2563eb;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
