body {
    font-family: Arial, sans-serif;
    background-color: #393c3f;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5ec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.form-help-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%; 
    gap: 40px;
}


.bottom-preview {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 20px;
    width: 100%;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.bottom-preview pre {
    background-color: #eaeaea;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


.cmdi-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between; 
    align-items: flex-start;
}


.form-container {
    flex: 1;
}


.side-preview {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 30%; 
    position: relative;
    margin-left: 20px;
}

.side-preview pre {
    background-color: #eaeaea;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.side-preview h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.side-preview button {
    margin-top: 10px;
}

.result-container {
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.result-container pre {
    background-color: #eaeaea;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    box-sizing: border-box;
    margin: 0;
}

.result-container button {
    margin-top: 10px;
}

.button-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #333;
}


.form-group {
    border: 2px solid #007bff;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #e7f3ff;
    position: relative;
    border-radius: 8px;
}

.form-group label {
    font-weight: bold;
    color: #004085;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.desc-box {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #333;
    font-size: 0.95em;
    line-height: 1.4em;
}

.attributeDescBox {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #333;
    font-size: 0.95em;
    line-height: 1.4em;
}

.desc-box.best-practices {
    display: none;
}

.toggle-best-practices-btn {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.toggle-best-practices-btn:hover {
    background-color: #d6d6d6;
}

.olac-group {
    border: 2px solid #28a745;
    padding: 10px;
    background-color: #d4edda;
    border-radius: 4px;
    margin-top: 20px;
}

.olac-field {
    border: none;
    padding: 0;
    background-color: transparent;
    margin-top: 10px;
}

.olac-group label, .olac-field label {
    font-weight: bold;
    color: #155724;
}

.navigation-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

pre {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
}

.add-btn, .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.remove-btn {
    background-color: #dc3545;
    right: 50px;
}

.add-btn:hover, .remove-btn:hover {
    background-color: #0056b3;
}

.remove-btn:hover {
    background-color: #c82333;
}

.toggle-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
    background-color: rgba(0, 123, 255, 0.2);
}


#helpContainer {
    display: none;
    width: 65%;
    background-color: #f5f5dc;
    padding: 20px;
    border: 2px solid #d3c4a3;
    border-radius: 10px;
    margin-left: 20px;
}

.help-subsection {
    display: none;
}

.help-subsection.active {
    display: block;
}

.help-subcontainer {
    background-color: #ede5c7;
    padding: 15px;
    border: 1px solid #c7b895;
    border-radius: 8px;
    margin-bottom: 15px;
}

.help-subcontainer h3 {
    color: #a0835b;
    font-size: 18px;
    margin-bottom: 10px;
}

.help-subcontainer p {
    color: #6f6b5b;
    font-size: 16px;
    line-height: 1.5em;
}

#toggleHelpBtn {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

#toggleHelpBtn:hover {
    background-color: #218838;
}

.help-visible #toggleHelpBtn {
    background-color: #dc3545;
    border-color: #dc3545;
}

.help-visible #toggleHelpBtn:hover {
    background-color: #c82333;
}

.help-navigation-container {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #8b4513;
    border: 1px solid #5e3410;
    padding: 8px;
    border-radius: 6px;
    z-index: 1000;
}

.help-navigation {
    display: flex;
    gap: 8px;
}

.help-nav-btn {
    padding: 6px 10px;
    background-color: #5f482d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.help-nav-btn:hover {
    background-color: #218838;
}


.form-group.cmdi-field {
    border: 2px solid #ff6600;
    background-color: #ffe6cc;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.form-group.cmdi-field label {
    font-weight: bold;
    color: #cc5200;
}

.form-group.cmdi-field input[type="text"],
.form-group.cmdi-field input[type="date"],
.form-group.cmdi-field select {
    background-color: #ffcc99;
    border: 1px solid #cc7a00;
    color: #cc5200;
    padding: 10px;
    border-radius: 4px;
}

#outdateWarning{
  border: 2px solid #fd5;
  padding: 10px;
  border-radius: 8px;
  background-color: #ffefaf;
}
