body {
background-color: #f9fafb;
color: #1f2937;
font-family: system-ui, -apple-system, sans-serif;
margin: 0;
padding: 0;
}

header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
gap: 0.5rem;
}

h1 {
font-size: 1.75rem;
font-weight: 700;
color: #1d4ed8;
}

h2 {
font-size: 1.25rem;
font-weight: 600;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}

nav button {
background-color: #2563eb;
color: white;
border: none;
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
cursor: pointer;
transition: background-color 0.2s ease;
}

nav button:hover {
background-color: #1d4ed8;
}

main {
background-color: white;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}

th {
background-color: #2563eb;
color: white;
text-align: left;
padding: 0.5rem 1rem;
}

td {
border: 1px solid #e5e7eb;
padding: 0.5rem 1rem;
}

tr:nth-child(even) td {
background-color: #f3f4f6;
}

button {
border: none;
border-radius: 0.375rem;
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
cursor: pointer;
}

button.add {
background-color: #16a34a;
color: white;
}
button.add:hover { background-color: #15803d; }

button.edit {
background-color: #f59e0b;
color: white;
}
button.edit:hover { background-color: #d97706; }

button.del {
background-color: #dc2626;
color: white;
}
button.del:hover { background-color: #b91c1c; }

input, select {
border: 1px solid #d1d5db;
border-radius: 0.375rem;
padding: 0.25rem 0.5rem;
outline: none;
}

input:focus, select:focus {
border-color: #2563eb;
box-shadow: 0 0 0 1px #2563eb;
}

ul {
list-style: none;
padding: 0;
margin-top: 1rem;
}

li {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 0.75rem;
margin-bottom: 0.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

pre {
background-color: #111827;
color: #a7f3d0;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
}
