body {
    margin: 0;
    background-color: #eee;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: #333;
    padding: 10px;
    color: white;
    text-align: center;
}

.container {
    display: flex;
    height: calc(100vh - 120px);
}

.input-panel {
    box-sizing: border-box;
    padding: 10px;
    width: 50%;
}

.input-panel textarea {
    width: 100%;
    height: 68%;
    resize: none;
}

.input-panel button {
    margin-top: 10px;
}

.render-panel {
    position: relative;
    box-sizing: border-box;
    padding: 10px;
    width: 50%;
}

iframe {
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: white;
    width: 100%;
    height: 70%;
}

#selectorInfo {
    margin-top: 10px;
}

#selectorInfo label {
    display: block;
    margin-bottom: 5px;
}

footer {
    position: fixed;
    bottom: 10px;
    font-size: 0.8em;
    text-align: center;
}

.highlight-box {
    position: absolute !important;
    z-index: 9999 !important;
    border: 2px dashed red !important;
    pointer-events: none;
}

.duplicate-highlight {
    position: absolute !important;
    z-index: 9998 !important;
    border: 2px solid orange !important;
    pointer-events: none;
}


.locator-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.locator-row label {
    min-width: 120px;
    font-weight: bold;
}

.locator-row input {
    flex: 1;
    box-sizing: border-box;
    padding: 5px;
    width: 50%;
}

.locator-row button {
    cursor: pointer;
    padding: 5px 10px;
}

.copy-btn {
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    padding: 8px 16px;
    width: 6em;
    color: white;
    font-size: 14px;
}

.copy-btn:hover,
.copy-btn:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #0056b3;
}

.copy-btn.success {
    background-color: #28a745;
}

.copy-btn.error {
    background-color: #dc3545;
}