/* spe-calib-pro.css — UI profesional de calibración GIS */

#spe-calib-wizard.spe-calib-pro {
    background: rgba(6, 14, 25, 0.95);
    border: 1px solid rgba(46, 144, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.spe-calib-pro-header {
    font-size: 12px;
    font-weight: 700;
    color: #64B5F6;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.spe-calib-pro-sub {
    font-size: 10px;
    color: rgba(160, 195, 230, 0.6);
    margin-bottom: 8px;
    line-height: 1.4;
}

.spe-calib-mode-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.spe-calib-mode-btn {
    flex: 1;
    min-width: 70px;
    padding: 5px 6px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(46, 144, 255, 0.2) !important;
    color: rgba(160, 195, 230, 0.85) !important;
    cursor: pointer;
}

.spe-calib-mode-btn:hover {
    background: rgba(46, 144, 255, 0.12) !important;
    border-color: rgba(46, 144, 255, 0.4) !important;
}

#spe-calib-points-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 8px;
    border: 1px solid rgba(22, 37, 64, 0.8);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
}

.spe-calib-pt-row {
    display: grid;
    grid-template-columns: 20px 1fr 62px 62px 42px 20px;
    gap: 3px;
    align-items: center;
    padding: 3px 5px;
    font-size: 10px;
    border-bottom: 1px solid rgba(22, 37, 64, 0.5);
    cursor: pointer;
}

.spe-calib-pt-row.active {
    background: rgba(46, 144, 255, 0.12);
}

.spe-calib-pt-row input {
    width: 100% !important;
    padding: 2px 3px !important;
    font-size: 9px !important;
    background: #0a1624 !important;
    border: 1px solid #162540 !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-family: monospace !important;
}

.spe-calib-pt-num {
    color: #64B5F6;
    font-weight: 700;
    text-align: center;
}

.spe-calib-pt-err {
    font-family: monospace;
    font-size: 9px;
    text-align: right;
}

.spe-calib-pt-err.ok { color: #4CAF50; }
.spe-calib-pt-err.warn { color: #FFC107; }
.spe-calib-pt-err.bad { color: #f44336; }

.spe-calib-pt-del {
    background: none !important;
    border: none !important;
    color: #f44336 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#spe-calib-quality {
    font-size: 11px;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.spe-calib-q-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
    font-family: monospace;
    font-size: 10px;
}

.spe-calib-q-status.ok { color: #4CAF50; }
.spe-calib-q-status.bad { color: #f44336; }
.spe-calib-q-warn { color: #FFC107; font-size: 10px; }

.spe-calib-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    font-size: 9px;
}

.spe-calib-zone {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.spe-calib-zone.ok { color: #4CAF50; border: 1px solid rgba(76, 175, 80, 0.3); }
.spe-calib-zone.miss { color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }

.spe-calib-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spe-calib-actions-row {
    display: flex;
    gap: 4px;
}

.spe-calib-actions-row .spe-btn { flex: 1; font-size: 10px !important; padding: 7px 8px !important; }

#spe-calib-toggle-heatmap.active {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: #FFC107 !important;
    color: #FFC107 !important;
}

#spe-calib-suggestions {
    max-height: 80px;
    overflow-y: auto;
    font-size: 9px;
    margin-bottom: 6px;
}

.spe-calib-sug {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    color: rgba(160, 195, 230, 0.7);
}

.spe-calib-sug-add {
    font-size: 9px !important;
    padding: 2px 6px !important;
    background: rgba(46, 144, 255, 0.15) !important;
    border: 1px solid rgba(46, 144, 255, 0.3) !important;
    color: #64B5F6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

#spe-calib-auto-status {
    font-size: 9px;
    color: rgba(160, 195, 230, 0.5);
    margin-bottom: 4px;
}

.spe-calib-dot-pro {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e90ff;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 301;
    box-shadow: 0 0 8px rgba(46, 144, 255, 0.8);
}

.spe-calib-dot-pro.selected {
    background: #FFC107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.9);
    width: 14px;
    height: 14px;
}

#spe-calib-crosshair {
    position: absolute;
    pointer-events: none;
    z-index: 302;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    display: none;
}

#spe-calib-crosshair::before,
#spe-calib-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 68, 68, 0.85);
}

#spe-calib-crosshair::before {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

#spe-calib-crosshair::after {
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
    transform: translateY(-50%);
}

#spe-calib-loupe {
    position: absolute;
    pointer-events: none;
    z-index: 303;
    border: 2px solid #ff4444;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    display: none;
}

#spe-calib-coords {
    position: absolute;
    bottom: 60px;
    left: 12px;
    z-index: 304;
    background: rgba(6, 14, 25, 0.92);
    border: 1px solid rgba(46, 144, 255, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 10px;
    color: #64B5F6;
    pointer-events: none;
    display: none;
    line-height: 1.5;
}

#spe-calib-add-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999998;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
}

.spe-calib-add-box {
    background: #0a1624;
    border: 1px solid rgba(46, 144, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    width: 280px;
    max-width: 90vw;
}

.spe-calib-add-box h4 {
    margin: 0 0 10px;
    color: #64B5F6;
    font-size: 13px;
}

.spe-calib-add-field {
    margin-bottom: 8px;
}

.spe-calib-add-field label {
    display: block;
    font-size: 10px;
    color: rgba(160, 195, 230, 0.7);
    margin-bottom: 3px;
}

.spe-calib-add-field input {
    width: 100%;
    padding: 6px 8px;
    background: #060b10;
    border: 1px solid #162540;
    color: #fff;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    box-sizing: border-box;
}

.spe-calib-stitched-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(160, 195, 230, 0.7);
    margin-bottom: 8px;
}

.spe-calib-stitched-opt input { width: auto !important; }

.spe-calib-wiz-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    font-size: 10px;
    border-bottom: 1px solid rgba(22, 37, 64, 0.5);
    cursor: pointer;
    transition: background 0.15s;
}

.spe-calib-wiz-row.current {
    background: rgba(46, 144, 255, 0.18);
    border-left: 3px solid #64B5F6;
}

.spe-calib-wiz-row.done { opacity: 0.85; }
.spe-calib-wiz-row.reselect { background: rgba(255, 193, 7, 0.12); border-left: 3px solid #FFC107; }

.spe-calib-wiz-num {
    color: #64B5F6;
    font-weight: 700;
    text-align: center;
}

.spe-calib-wiz-info {
    min-width: 0;
}

.spe-calib-wiz-name {
    display: block;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spe-calib-wiz-coords {
    display: block;
    font-size: 9px;
    color: rgba(160, 195, 230, 0.55);
    font-family: monospace;
    margin-top: 1px;
}

.spe-calib-wiz-ok { color: #4CAF50; font-size: 9px; white-space: nowrap; }
.spe-calib-wiz-pending { color: rgba(160, 195, 230, 0.45); font-size: 9px; font-style: italic; }

.spe-calib-wiz-progress {
    padding: 6px 8px;
    font-size: 10px;
    color: #64B5F6;
    text-align: center;
    font-weight: 600;
}

.spe-calib-advanced-toggle {
    width: 100%;
    margin-top: 8px;
    padding: 6px !important;
    background: none !important;
    border: none !important;
    color: rgba(160, 195, 230, 0.5) !important;
    font-size: 10px !important;
    cursor: pointer !important;
    text-align: center !important;
}

.spe-calib-advanced-toggle:hover { color: #64B5F6 !important; }

#spe-calib-advanced {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(22, 37, 64, 0.6);
}

.spe-calib-pt-label-ro { color: #fff; font-weight: 600; font-size: 10px; }
.spe-calib-pt-coords { font-size: 9px; color: rgba(160,195,230,.55); font-family: monospace; }
.spe-calib-pt-px { font-size: 9px; color: #4CAF50; font-family: monospace; }
