/* Reset and base styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, Avenir, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

/* App container */
#app {
    padding: 21px;
    max-width: 1600px;
    margin: auto;
}

/* Headings */
h2, h3, h4 {
    margin-top: 21px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #222;
}

/* Input, Select, Button styles */
input[type="text"],
input[type="number"],
select,
button {
    font-size: 15px;
    padding: 6px 6px;
    margin: 3px 3px 6px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fdfdfd;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.1);
}

/* Button specifically */
button {
    background-color: #f0f0f0;
    border: 1px solid #bbb;
    cursor: pointer;
}

button:hover {
    background-color: #e0e0e0;
}

/* Search container spacing */
#searchContainer {
    margin-top: 21px;
    margin-bottom: 12px;
}

#searchInput {
    width: 100%;
}

/* Data table with minimal style + zebra rows */
#dataTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 9px;
}

#dataTable th,
#dataTable td {
    padding: 6px 9px;
    border-bottom: 1px solid #ddd;
}

#dataTable th {
    text-align: left;
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

#dataTable tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

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

#dataTable tbody tr:hover {
    background-color: #eaeaea;
}

#dataTable td {
    color: #444;
}

.sorted-asc::after {
    content: " \25B2"; /* ▲ */
}

.sorted-desc::after {
    content: " \25BC"; /* ▼ */
}

th.sortable {
    cursor: pointer;
}

#clearAllBtn {
    background-color: #fbeaea;
    border: 1px solid #e77;
    color: #a00;
}

#clearAllBtn:hover {
    background-color: #f5cfcf;
}