/* ==========================================
   Search Panel Strict Layout Fix
   ========================================== */

/* Outer wrapper forced flex row */
#panel-search .search-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
}

/* Search Text Box: FORCED TO EXPAND */
#panel-search #search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important; /* Prevents text input overflow in flex containers */
    height: 36px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* Search Button: FORCED COMPACT SIZE */
#panel-search #btn-execute-search {
    flex: 0 0 auto !important;
    width: auto !important;           /* Overrides any global width: 100% */
    max-width: 60px !important;        /* Keeps the button compact */
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    background-color: #007bff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

#panel-search #btn-execute-search:hover {
    background-color: #0056b3 !important;
}<!-- PANEL 1: Search Floating Panel -->
<div class="floating-panel" id="panel-search" style="display: none;">
    <div class="panel-header drag-handle">
        <span><i class="fa-solid fa-magnifying-glass"></i> Search Assets / Locations</span>
        <button class="btn-collapse" id="btn-close-search-panel" title="Close Panel">
            <i class="fa-solid fa-xmark"></i>
        </button>
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label for="search-input">Query / ID / Name:</label>
            <div class="search-input-wrapper" style="display: flex; gap: 6px; align-items: center; width: 100%; margin-top: 4px;">
                <!-- flex: 1 forces text field to take full remaining width -->
                <input type="text" id="search-input" class="panel-input" placeholder="e.g. FBR-DC-12F-08 or FAT-08" style="flex: 1 1 auto; width: 100%; height: 34px; padding: 4px 8px;">
                <!-- flex: 0 0 auto stops button from stretching -->
                <button class="btn-primary" id="btn-execute-search" style="flex: 0 0 auto; height: 34px; padding: 0 14px; min-width: unset;">
                    <i class="fa-solid fa-search"></i>
                </button>
            </div>
        </div>
        <div class="search-results-container" id="search-results-list" style="max-height: 200px; overflow-y: auto; margin-top: 10px;">
            <!-- Search results appear here -->
        </div>
    </div>
</div>/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================
   Search Panel Component Controls
   ========================================== */

/* Search Input & Button Layout Row */
#panel-search .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

/* Text Input: Expands to take available width */
#panel-search #search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-search #search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Search Button: Compact, fixed-width button */
#panel-search #btn-execute-search {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover & Active States */
#panel-search #btn-execute-search:hover {
    background-color: #0056b3;
}

#panel-search #btn-execute-search:active {
    transform: scale(0.97);
}

/* Search Results Container styling */
#panel-search .search-results-container {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}/* ==========================================================================
   FiberPlanner - Cyan Glassmorphic UI Components Snippet (#14abd9)
   ========================================================================== */

.logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main, #f0f6f9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: var(--accent-cyan, #14abd9);
    text-shadow: 0 0 10px var(--accent-cyan-glow, rgba(20, 171, 217, 0.4));
}

.panel-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted, #8da4b8);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-header button:hover {
    color: var(--accent-cyan, #14abd9);
    transform: scale(1.1);
}

#layers,
#attributes {
    padding: 15px;
    font-size: 14px;
    color: var(--text-main, #f0f6f9);
}

/* TOOLBAR BUTTONS (Dark Glassmorphic Adaptation) */
.tool-btn {
    width: 100%;
    height: 45px;
    border: none;
    border-bottom: 1px solid var(--gray-border, rgba(20, 171, 217, 0.25));
    background: var(--gray-header, rgba(26, 34, 46, 0.92));
    color: var(--accent-cyan, #14abd9);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: var(--gray-hover, rgba(20, 171, 217, 0.18));
    color: #ffffff;
    border-bottom-color: var(--gray-border-bright, rgba(20, 171, 217, 0.6));
    box-shadow: inset 0 0 10px rgba(20, 171, 217, 0.2);
}

.tool-btn.active {
    background: var(--gray-active, linear-gradient(180deg, #14abd9 0%, #0e7899 100%));
    color: #ffffff;
    box-shadow: 0 0 14px rgba(20, 171, 217, 0.4);
}

/* LAYERS TOGGLE BUTTON */
#layers-toggle-btn {
    background: var(--accent-cyan, #14abd9);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 10px rgba(20, 171, 217, 0.35);
}

#layers-toggle-btn:hover {
    background: var(--accent-cyan-dark, #0e7899);
    box-shadow: 0 0 15px rgba(20, 171, 217, 0.6);
}

/* Prevent zoom/action buttons from staying highlighted when focused */
.arc-toolbar .tool-btn:focus:not(.active) {
    background-color: transparent; /* or your default button background */
    outline: none;
    box-shadow: none;
}


.toc-layer-item{

display:flex;
align-items:center;
gap:8px;
padding:5px;
border-bottom:1px solid #ddd;

}


.geometry-symbol{

width:22px;
font-size:18px;
font-weight:bold;
color:#0066ff;

}



.layer-name{

flex:1;
cursor:pointer;
font-size:13px;

}



.layer-name[contenteditable="true"]{

border:1px solid #999;
background:white;

}



.layer-zoom,
.layer-remove{

border:none;
background:none;
cursor:pointer;

}



.layer-zoom{

color:#0066ff;

}



.layer-remove{

color:#d33;

}


.geometry-symbol{

width:18px;
height:18px;
display:inline-block;

}


/* Point */

.point-symbol{

width:12px;
height:12px;
border-radius:50%;
background:#0066ff;

}



/* Line */

.line-symbol{

height:4px;
width:20px;
background:#ff0000;
margin-top:6px;

}



/* Polygon */

.polygon-symbol{

width:14px;
height:14px;
background:#00aa00;
border:1px solid #006600;

}


/* ==========================================
   Layer Style Popup
   ========================================== */

.layer-style-popup {

    display:none;

    position:fixed;

    top:150px;
    right:320px;

    width:260px;

    background:#ffffff;

    border:1px solid rgba(0,0,0,0.15);

    border-radius:8px;

    padding:15px;

    z-index:99999;

    box-shadow:0 8px 25px rgba(0,0,0,0.25);

    font-size:13px;
}


.layer-style-popup h4 {

    margin:0 0 12px 0;

    padding-bottom:8px;

    border-bottom:1px solid #ddd;

    font-size:16px;

}



.layer-style-popup label {

    display:block;

    margin-top:10px;

    margin-bottom:4px;

    font-weight:600;

}



.layer-style-popup input {

    width:100%;

    height:32px;

}



#apply-layer-style {

    margin-top:15px;

    width:100%;

    height:34px;

    background:#0066ff;

    color:white;

    border:none;

    border-radius:5px;

    cursor:pointer;

}

#layer-style-popup .style-popup-footer #cancel-layer-style,
#layer-style-popup .style-popup-footer #apply-layer-style {
    flex: 0 0 105px;
    width: 105px;
    min-width: 105px;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
