/* Palette inspired by sportingtisselt.be: red accents, dark olive text, cream background */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #dee7be;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #2a2a26;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#header {
    background-color: #b9272b;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    padding: 14px 0;
}

#header .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#header .logo {
    font-weight: bold;
    font-size: 22px;
    color: #fff;
    background: #fff;
    color: #b9272b;
    border-radius: 6px;
    padding: 4px 10px;
    margin-right: 14px;
}

#header .site-title {
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

#navigation .nav {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

#navigation .nav li a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

#navigation .nav li a:hover {
    background: rgba(255,255,255,0.15);
}

#navigation .nav li a.active {
    background: #fff;
    color: #b9272b;
}

#main {
    padding: 30px 0 60px 0;
}

.page-title {
    color: #b9272b;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-title span {
    display: block;
    font-size: 14px;
    color: #2a2a26;
    text-transform: none;
    font-weight: normal;
    margin-top: 6px;
}

.statusbar {
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

.statusbar.ok {
    background: #e4f4df;
    color: #2e6b1f;
    border-left: 4px solid #488000;
}

.statusbar.error {
    background: #fbe3e3;
    color: #8a1c1c;
    border-left: 4px solid #b9272b;
}

.panel {
    background: #fff;
    border-left: 6px solid #b9272b;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.panel-header h1 {
    font-size: 19px;
    margin: 0;
    color: #2a2a26;
    text-transform: uppercase;
    font-weight: normal;
}

.panel-header h1 span {
    font-size: 13px;
    color: #b9272b;
    text-transform: none;
}

.panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #b9272b;
    color: #fff;
}

.btn-primary:hover {
    background: #8a1c1c;
}

.btn-secondary {
    background: #488000;
    color: #fff;
}

.btn-secondary:hover {
    background: #366100;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.filters {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8f5ec;
    border-radius: 4px;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-field label {
    font-size: 13px;
    color: #2a2a26;
    white-space: nowrap;
}

.filter-field select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.filter-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table thead th {
    text-align: left;
    background: #f3eee0;
    color: #b9272b;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid #b9272b;
    white-space: nowrap;
}

table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

table thead th.sortable:hover {
    background: #ebe3d0;
}

table thead th.sortable::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.35;
}

table thead th.sortable::after {
    border-top: 5px solid #b9272b;
}

table thead th.sortable.sort-asc::after {
    opacity: 1;
    border-top: none;
    border-bottom: 5px solid #b9272b;
    margin-top: -5px;
}

table thead th.sortable.sort-desc::after {
    opacity: 1;
    border-top: 5px solid #b9272b;
    margin-top: -2px;
}

table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

table tbody tr:hover {
    background: #fbf7ec;
}

#matches-table tbody tr.changed-row {
    background: #fdf1cf;
    border-left: 3px solid #c98a1b;
}

#matches-table tbody tr.changed-row:hover {
    background: #fbe6ad;
    cursor: help;
}

h2 {
    font-size: 15px;
    color: #b9272b;
    text-transform: uppercase;
    margin: 22px 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

h2:first-child {
    margin-top: 0;
}

.field {
    margin-bottom: 12px;
    max-width: 480px;
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #2a2a26;
}

.field input[type=text], .field input[type=password], .field input[type=number] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.field-hint {
    max-width: 480px;
    font-size: 12px;
    color: #666;
    margin: -4px 0 16px 0;
}

.field-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diff-summary {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.diff-chip {
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.diff-chip.added { background: #488000; }
.diff-chip.removed { background: #b9272b; }
.diff-chip.changed { background: #c98a1b; }
.diff-chip.none { background: #999; }

.diff-entry {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 13px;
}

.diff-entry:last-child {
    border-bottom: none;
}

.diff-entry .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    margin-right: 8px;
}

.badge.ADDED { background: #488000; }
.badge.REMOVED { background: #b9272b; }
.badge.CHANGED { background: #c98a1b; }

.diff-entry ul {
    margin: 6px 0 0 24px;
    padding: 0;
    color: #555;
}

#footer {
    background: #b9272b;
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
