.leed-line-white{
    background-color: #fff;
}

.leed-line-grey{
    background-color: #f0f0f0;
}

.img-container{
    max-width: 100%;
    max-height: 500px;
}

@media (max-width: 768px) {
    .mgn {
        margin-top: 50px;
    }
    .button-size{
        height: 100px;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    .mgn {
        margin-top: 0;
    }
    .button-size{
        height: 50px;
    }    
}
@media (min-width: 992px) and (max-width: 1200px) {
    .mgn {
        margin-top: 0;
    }
    .button-size{
        height: 50px;
    }    
    
}
@media (min-width: 1200px) {
    .mgn {
        margin-top: 0;
    }
    .button-size{
        height: 50px;
    }    
    
}

/* Recognize page: two-panel stacked layout */

.recognize-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.recognize-image-panel {
    flex: 1 1 50%;
    overflow: auto;
    position: relative;
    min-height: 0;
    background: #1a1a1a;
}

.recognize-image-scroll {
    padding: 10px;
    text-align: center;
    position: relative;
}

.recognize-image-panel img {
    max-width: none;
}

#picContainer {
    cursor: move;
}

.recognize-overlay {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recognize-overlay a {
    font-size: 13px;
    white-space: nowrap;
}

.recognize-overlay .row {
    margin: 0;
}

.recognize-stats {
    font-size: 12px;
    padding: 4px 0 2px 0;
    white-space: nowrap;
}

.recognize-select {
    font-size: 13px;
    padding: 1px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.7);
}

.recognize-scroll-buttons {
    position: sticky;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    gap: 4px;
    width: fit-content;
    padding: 0 8px 4px 8px;
}

.recognize-scroll-buttons .btn {
    width: 36px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}

.recognize-scroll-buttons .btn:hover {
    opacity: 1;
}

.recognize-divider {
    height: 6px;
    background: linear-gradient(to bottom, #bbb, #ddd);
    cursor: row-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.recognize-divider:hover {
    background: linear-gradient(to bottom, #999, #bbb);
}

.recognize-form-panel {
    flex: 1 1 50%;
    overflow-y: auto;
    padding: 10px 10px 20px 10px;
    min-height: 0;
    background: #fff;
}

/* Recognize tools toolbar */

.recognize-tools {
    display: flex;
    gap: 6px;
    padding: 4px 0 2px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.recognize-tools .btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
}

/* SVG polygon overlay */

.polygon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.polygon-overlay .polygon-shape {
    pointer-events: none;
}

.polygon-overlay .polygon-vertex {
    pointer-events: all;
    transition: r 0.1s;
}

.polygon-overlay .polygon-vertex:hover {
    r: 9;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.polygon-overlay .polygon-label {
    font-size: 13px;
    font-weight: 700;
    fill: #000;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    pointer-events: none;
    user-select: none;
}

/* OCR Progress Modal */

.ocr-progress-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-progress-inner {
    background: #fff;
    border-radius: 10px;
    padding: 28px 36px;
    min-width: 380px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
}

.ocr-progress-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ocr-progress-stage {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    text-transform: capitalize;
}

.ocr-progress-message {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
