/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

header {
    background-color: #0055a4;
    color: white;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

button {
    background-color: #0055a4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

button:hover {
    background-color: #003d7a;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#file-section {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.file-controls {
    margin-bottom: 1rem;
}

#current-file {
    font-style: italic;
    color: #666;
}

#editor-container {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
}

#navigation {
    flex: 1;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

#editor {
    flex: 3;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

#nav-tree {
    list-style-type: none;
}

#nav-tree ul {
    padding-left: 20px;
    list-style-type: none;
}

#nav-tree li {
    margin-bottom: 5px;
}

#nav-tree .nav-item {
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

#nav-tree .nav-item:hover {
    background-color: #f0f0f0;
}

#nav-tree .nav-item.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.nav-toggle {
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    margin-right: 5px;
    cursor: pointer;
    display: inline-block;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9rem;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.array-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    position: relative;
}

.array-item-controls {
    position: absolute;
    top: 10px;
    right: 10px;
}

.array-controls {
    margin-top: 1rem;
}

.uuid-field {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}