* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #34495e;
}

.header-left .app-title {
    font-size: 16px;
    font-weight: bold;
}

.header-right .date-time {
    font-size: 12px;
    background-color: #34495e;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background-color: #ecf0f1;
    border-right: 1px solid #bdc3c7;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #2980b9;
}

.tree-container {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

.tree {
    list-style: none;
    padding-left: 0;
}

.tree-item {
    margin: 5px 0;
}

.tree-node {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tree-node:hover {
    background-color: #dfe6e9;
}

.tree-node.selected {
    background-color: #3498db;
    color: white;
}

.expand-icon {
    margin-right: 8px;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.node-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtree {
    padding-left: 20px;
    margin-top: 5px;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    background-color: white;
}

.validation-section,
.parameter-detail-section {
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.section-header span {
    flex: 1;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-range label {
    font-size: 12px;
    white-space: nowrap;
}

.date-input[type="datetime-local"],
.filter-select {
    padding: 3px 5px;
    border: 1px solid #7f8c8d;
    border-radius: 3px;
    font-size: 12px;
    width: 160px;
}

.refresh-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.toolbar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background-color: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.toolbar-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.data-table-container {
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 6px;
    text-align: left;
    border: 1px solid #bdc3c7;
}

.data-table th {
    background-color: #ecf0f1;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
    cursor: pointer;
    user-select: none;
}

.data-table th:hover {
    background-color: #d5dbdb;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #eaf2f8;
}

.validation-fail-row {
    background-color: #ffebf0 !important;
}

.comment-input, .validated-value-input {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 4px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.tab-navigation {
    display: flex;
    border-top: 1px solid #bdc3c7;
    background-color: #ecf0f1;
}

.tab-btn {
    padding: 8px 15px;
    border: none;
    background-color: #bdc3c7;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.tab-btn:hover {
    background-color: #95a5a6;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.pass-status { color: green; font-weight: bold; }
.fail-status { color: red; font-weight: bold; }
.sync-success { color: green; font-weight: bold; }
.sync-failed { color: red; font-weight: bold; }
.sync-pending { color: orange; font-weight: bold; }