/* === GeoJSON Converter Tool (no map) === */
#geojsonSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 80%;
    margin: 20px auto;
}

#geojsonSection h2 {
    color: #333;
    margin-bottom: 20px;
    align-self: center;
}

/* Input area */
#geojsonSection .search-container {
    width: 100%;
    margin-bottom: 20px;
}
#geojsonSection .search-panel h3 {
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}
#geojsonSection textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: border-color .3s;
    box-sizing: border-box;
}
#geojsonSection textarea:focus {
    border-color: #af65d9;
    outline: none;
}

/* Buttons */
#geojsonSection button {
    background: #fff;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 7px 15px;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color .3s;
}
#geojsonSection button:hover {
    background: #2c3e50;
    color: #fff;
}

/* Output area */
#geojsonResult {
    width: 100%;
    margin-top: 20px;
}
#geojsonResult h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}
#geojsonResult pre {
    background: #f8f9fa;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    #geojsonSection {
        width: 95%;
        padding: 15px;
    }
    #geojsonSection textarea {
        min-height: 150px;
    }
}

.instruction-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    color: #34495e;
    font-size: 14px;
}

.instruction-box h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.instruction-box ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-box li {
    margin: 6px 0;
    line-height: 1.5;
}


/* Side-by-side layout for input & results */
.dup-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 15px;
}

.dup-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dup-panel label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 14px;
}

.ef-record-count {
    display: inline-block;
    background-color: #af65d9;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.ef-record-count:empty {
    display: none;
}

[data-theme="dark"] .ef-record-count {
    background-color: #9b4dc2;
}

.dup-panel textarea {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
    color: #2c3e50;
}

.dup-panel textarea:focus {
    border-color: #af65d9;
    outline: none;
}

/* Copy/Download buttons below results */
.dup-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

/* Controls row */
.dup-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dup-controls label,
.dup-controls select {
    font-size: 14px;
    color: #2c3e50;
}

.dup-controls select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Excel Flow controls styling aligned to Duplicate Counter design */
.excel-flow-controls {
    margin-top: 8px;
    justify-content: flex-start;
}

.excel-flow-controls label {
    white-space: nowrap;
}

.excel-flow-delimiter {
    flex: 0 0 60px !important;
    width: 60px !important;
    min-width: 0 !important;
    max-width: 60px !important;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
}

.excel-flow-wrap-controls {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-end;
    margin-top: 8px;
}

.excel-flow-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Keep Join with dropdown same compact size as Prefix/Suffix inputs */
.excel-flow-field--joiner {
    flex: 1;
}

.excel-flow-field label {
    font-size: 14px;
    color: #2c3e50;
    white-space: nowrap;
}

.excel-flow-field input,
.excel-flow-field select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.excel-flow-presets {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Stats line */
.dup-stats {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Duplicate Counter Button Styling - Consistent with Application */
.duplicate-counter button {
    background-color: #fff;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 7px 7px;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.duplicate-counter button:hover {
    background-color: #2c3e50;
    color: white;
}

.duplicate-counter button:focus {
    outline: none;
    border-color: #af65d9;
}

/* Responsive */
@media (max-width: 768px) {
    .dup-grid {
        flex-direction: column;
    }
}


