/* static/style.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f6fa;
    color: #2c3e50;
}

/* ---------------- NAV / HEADER ---------------- */
header {
    background: #1f2937;
    color: white;
    padding: 15px 20px;
}

/* ---------------- CONTAINER ---------------- */
.container {
    padding: 20px;
}

/* ---------------- LINKS ---------------- */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------------- BUTTONS ---------------- */
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background: #1d4ed8;
}

/* ---------------- FORMS ---------------- */
input, select {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ---------------- TABLES ---------------- */

/* FULL WIDTH TABLE CONTAINER LOOK */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

/* HEADER FIXED STYLE */
thead th {
    position: sticky;
    top: 0;
    background: #111827;
    color: white;
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}

/* CELLS */
td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* ROW HOVER */
tr:hover {
    background: #f1f5f9;
}

/* WRAPPER FULL WIDTH CLEAN */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    background: white;
}

/* PAGE FULL WIDTH FIX */
main {
    width: 100%;
}

/* ---------------- CARDS (optional future UI) ---------------- */
.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

/* ---------------- LAYOUT HELPERS ---------------- */
.row {
    display: flex;
    gap: 10px;
}

.col {
    flex: 1;
}

/* ---------------- SMALL BADGES ---------------- */
.badge {
    background: #e5e7eb;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

button {
    border-radius: 4px;
}

button.delete {
    background: #dc2626;
}

button.delete:hover {
    background: #b91c1c;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#tree div div {
    padding: 3px 6px;
    border-radius: 4px;
}

#tree div div:hover {
    background: #1f2937;
}