﻿/* Map Settings Component Styles */

.svg-wrapper {
    width: 100%;
    overflow: auto;
}

.zoom-buttons {
    display: flex;
    border: 2px solid #503B26;
    border-radius: 0.5rem;
}

.zoom-buttons button {
    color: #503B26;
    border-color: #503B26;
    font-weight: bold !important;
    font-size: 1.5rem;
    padding: 0rem 1rem;
    border: none;
    background: transparent;
}

.settings-container {
    margin: 1rem 1rem 0rem 1rem;
    display: flex;
}

.card-container {
    width: 25.9375rem;
    margin-right: 1rem;
}

.main-hedr {
    color: #232323;
    font-size: 1.7rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.875rem;
}

.sec-hedr {
    color: #000;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3625rem;
    margin-bottom: 0.5rem !important;       
}

.settings-card {
    margin-top: 1rem;
    padding: 1rem 1.5rem;  
    border-radius: 0.5rem;
    border: 1px solid rgba(211, 211, 211, 0.60);
    background: rgba(255, 255, 255, 0.26);   
    box-shadow: 0px 2px 10px 5px rgba(0, 0, 0, 0.01);
    width: 25.9375rem;
}

.number-card {
    width: 21.1875rem;
    height: 6.25rem;
    border-radius: 0.5rem;
    background: #EBF5EC;
    box-shadow: 0px 2px 10px 5px rgba(0, 0, 0, 0.01);
    padding: 1rem 1.19rem;
}

.number-hedr {
    color: #000;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3625rem;
    letter-spacing: -0.03rem;
    margin-bottom: 0px !important;
}

.numb-desc {
    color: rgba(0, 0, 0, 0.63);
    font-size: 1rem;
    font-weight: 400;
    line-height: normal;
    margin-top: 0.5rem;
    margin-bottom: 0px !important;
}

.numbering-btns {
    width: 7.8rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid #7C5C3C;
    background: #EBF5EC;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
}

.numbering-btns span {
    color: #503B26;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.btn-groups {
    margin-top: 1rem;
}

.add-img {
    width: 1.5625rem;
    height: 1.5625rem;
}

.undo-img {
    width: 1rem;
    height: 1.09375rem;
    margin-right: 0.7rem;
}

.clear-img {
    width: 1.3205rem;
    height: 1.3125rem;
    margin-right: 0.7rem;
}

.separtor {
    width: 21.1875rem;
    height: 0.0625rem;
    background: rgba(203, 203, 203, 0.81);   
    margin: 1.3rem 0rem;
}

.main-action-btn {
    border-radius: 0.5rem;
    border: 1px solid #7C5C3C;
    background: #EBF5EC;
    width: 9.8rem;
    height: 3.25rem;
    color: #503B26;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.cancel-action-btn {
    border-radius: 0.5rem;
    border: 1px solid #7C5C3C;
    width: 10.3125rem;
    height: 3.25rem;
    background-color: transparent;
    color: #503B26;
    font-size: 1.0625rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.select-btn {
    text-align: start;
}

.select-btn img {
    padding-left: 1rem;
    padding-right: 0.5rem;
}

.change-btn {
    color: #503B26;
    font-size: 1.0625rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 10.3125rem;
    height: 2.625rem;
    border-radius: 0.125rem;
    border: 1px solid #503B26;
    background: #E8E4E4;
}

.action-btn-group {
    margin-bottom: 1rem;
}

.select-filter {
    max-width: 10.3125rem !important;        
    height: 3.25rem !important;
    padding: 0.625rem 0.625rem 0.5625rem 0.75rem !important;
    border-radius: 0.5rem;
    border: 1px solid #7C5C3C;
    background: #EBF5EC;
    color: #503B26;
    font-size: 1.0625rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    z-index: 2;
}

.select-filter:hover,
.select-filter:active,
.select-filter.show {
    border: 1px solid #7C5C3C;
    background: #EBF5EC;
    color: #503B26;
}

.select-ul .dropdown-item {
    color: #232323;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: normal;
    height: 1.375rem;
    margin-bottom: 1.8rem;
}

.select-ul .dropdown-item:hover {
    background: #EBF5EC;
}

.select-ul .dropdown-item:first-child {      
    margin-top: 0.8rem;
}

.select-ul {
    top: -1rem !important;
    z-index: 1 !important;
    min-width: 10.3125rem !important;        
    width: 10rem !important;
    border-top-right-radius: 0px !important; 
    border-top-left-radius: 0px !important;  
    background: #EBF5EC;
}

.color-palette {
    margin-top: 1.7rem;
    width: 20.25rem;
    display: flex;
    justify-content: space-between;
}

.color-value {
    width: 1.5625rem;
    height: 1.5625rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid #555;
}

.color-lbl {
    color: #503B26;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-left: 0.5rem;
}

.color-margin {
    margin-top: 1.25rem;
}

.confirm-btn {
    width: 16.125rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid #AC7E50;
    background: #EBF5EC;
    color: #503B26;
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 3rem;
}

.map {
    border: 1px solid #503B26;
    border-radius: 0.5rem;
    padding: 0rem 0rem !important;
}

.btn-container {
    border-top: 1px solid rgba(203, 203, 203, 0.81);
    padding-top: 1.3rem;
    margin-top: 1.3rem;
}

.form-check-input:checked {
    background-color: #AC7E50;
    border-color: #AC7E50;
}

.apply-btn {
    width: 5rem !important;
}

.fit-button-width {
    width: fit-content !important;
    padding: 0rem 0.7rem;
}

.move-btns {
    margin-top: 1rem;
    justify-content: space-between;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
}

.move-btns button,
.direction-btn {
    color: #503B26;
    border-color: #503B26;
    font-weight: bold !important;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    flex: 1;
}

.map-setting {
    background: #EBF5EC;
    margin-bottom: 1rem;
    border-radius: 0.5rem 0.5rem 0rem 0rem;  
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    padding-left: 3.06rem;
    padding-top: 1rem;
}

.back-btn a {
    text-decoration: underline !important;   
    cursor: pointer;
}

.area-info {
    background-color:  #EBF5EC;
    border: 2px solid black;
    padding: 10px;
    border-radius: 5px;
    color: black;
    margin-top: 20px;
}

.area-info p {
    margin: 5px 0;
}

.area-info p strong {
    font-weight: bold;
}

.ic--round-pan-tool {
    display: inline-block;
    width: 1em;
    height: 1em;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21.5 4c-.83 0-1.5.67-1.5 1.5v5c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-8c0-.83-.67-1.5-1.5-1.5S16 1.67 16 2.5v8c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-9c0-.83-.67-1.5-1.5-1.5S12 .67 12 1.5v8.99c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.5c0-.83-.67-1.5-1.5-1.5S8 3.67 8 4.5v11.41l-4.12-2.35c-.58-.33-1.3-.24-1.78.22c-.6.58-.62 1.54-.03 2.13l6.78 6.89c.75.77 1.77 1.2 2.85 1.2H19c2.21 0 4-1.79 4-4V5.5c0-.83-.67-1.5-1.5-1.5'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.panning-cursor {
    cursor: grab;
}

.gis--arrow-o {
    display: inline-block;
    width: 1em;
    height: 1em;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23000' d='M14.291 2.346a5 5 0 0 0-2.477 4.944l7.556 81.087c.483 3.937 5.139 5.772 8.177 3.222l14.215-11.93l7.15 12.385c4.112 7.121 12.37 7.87 19.49 3.758c7.123-4.112 10.603-11.637 6.491-18.758l-7.125-12.341l17.164-6.245c3.727-1.357 4.466-6.305 1.298-8.692L19.784 2.688a5 5 0 0 0-5.493-.342m8.878 15.408l49.685 34.467l-19.713 7.173l.09 2.143l13 22.517c1.428 2.473-.356 3.67-2.83 5.098s-4.402 2.375-5.83-.098l-13-22.517l-.103-.198l-16.294 13.677z' color='%23000'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.form-select {
    margin: 1rem 0;
}

.list-container {
    width: 90%;
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    background-color: #fff;
}

.list-item.included {
    background-color: #d3d3d3;
}

.list-item button {
    margin-left: 10px;
}

.list-item span {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.list-item span:hover::after {
    content: attr(data-id);
    position: absolute;
    left: 0;
    bottom: 20px;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 5px 10px;
    cursor: pointer;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

/* =========================================
   Shared Form & Tool Styles (from Path Planning)
   ========================================= */

/* Form Layouts */
.auto-path-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1E4620;
}

.form-select, .form-control {
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus, .form-control:focus {
    border-color: #2B5631;
    box-shadow: 0 0 0 3px rgba(43, 86, 49, 0.15);
    outline: none;
}

/* Special Button: Auto Find */
.auto-find-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    background: #2B5631;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.auto-find-btn:hover:not(:disabled) {
    background: #1E4620;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 86, 49, 0.3);
}

.auto-find-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #7a9a7d;
}

.auto-find-btn .btn-icon {
    font-size: 1.1rem;
}

/* Existing Paths List Styling - Refined */
.existing-paths .list-container {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.5rem;
    background: #fafafa;
    width: 100%; /* Ensure full width */
    height: 200px;
    overflow-y: auto;
}

.existing-paths .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: all 0.2s;
}

.existing-paths .list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.existing-paths .list-item:last-child {
    margin-bottom: 0;
}

/* Tab Navigation Styling */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: #2B5631;
    border-bottom-color: #C8E6CC;
}

.nav-tabs .nav-link.active {
    color: #2B5631;
    background-color: transparent;
    border-bottom: 2px solid #2B5631;
}
