body.geoint-body {
    margin: 0;
    padding: 0;
    background: #0b1622;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */

.geoint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #102235;
    border-bottom: 2px solid #ffffff;
    padding: 20px;
}

.header-logo img {
    width: 110px;
    height: auto;
}

.header-center {
    text-align: center;
}

.header-center h1,
.header-center h2,
.header-center h3 {
    margin: 5px 0;
    color: #ffffff;
}

/* TITLES */

.section-title,
.status-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

/* STATUS PANEL */

.system-status-panel {
    background: #13283d;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 10px;
}

.status-grid{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    padding:8px;
}


.status-card{
    min-width:140px;
    padding:8px 10px;
    font-size:11px;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:nowrap;
}


.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: red;
    margin-right: 10px;
}

/* MAPA */

.map-section,
.streetview-section,
.context-panel {
    background: #13283d;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 10px;
}

#geoint-map,
#street-view {
    width: 100%;
    height: 500px;
    background: #0d1c2b;
    border: 2px solid #ffffff;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: bold;
}

/* CONTEXTO */

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.context-card {
    background: #1a3550;
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 15px;
}

.context-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.context-card textarea,
.context-card select,
.context-card input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #0d1c2b;
    color: #ffffff;
}

.context-card textarea {
    min-height: 120px;
    resize: vertical;
}

.ia-placeholder {
    background: #0d1c2b;
    border: 1px dashed #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

/* BOTONES */

.report-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.reject-btn,
.accept-btn,
.generate-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
}

.reject-btn {
    background: #8b0000;
}

.accept-btn {
    background: #006400;
}

.generate-btn {
    background: #003366;
    border: 1px solid #ffffff;
}

.generate-btn:hover {
    background: #00509e;
}

#geoint-map {
    width: 100%;
    height: 500px;
    min-height: 500px;
    background: #0b1622;
    border: 2px solid #ffffff22;
    border-radius: 10px;
    overflow: hidden;
}

/* ========================================
   INFORME GEOINT 8.X
======================================== */

#report-view{
    min-height:100vh;
    background:#0b1220;
    color:white;
    display:none;
}

.report-sidebar{
    width:320px;
    background:#111827;
    border-right:1px solid #1f2937;
    padding:20px;
    overflow-y:auto;
}

.report-sidebar-title{
    font-size:22px;
    font-weight:bold;
    margin-bottom:25px;
    text-align:center;
    color:#60a5fa;
}

.report-nav-btn{
    width:100%;
    margin-bottom:12px;
    padding:14px;
    background:#1e293b;
    border:none;
    color:white;
    text-align:left;
    cursor:pointer;
    border-radius:8px;
    transition:0.2s;
}

.report-nav-btn:hover{
    background:#2563eb;
}

.print-report-btn{
    width:100%;
    margin-top:30px;
    padding:16px;
    background:#dc2626;
    border:none;
    color:white;
    font-weight:bold;
    border-radius:8px;
    cursor:pointer;
}

.report-content{
    flex:1;
    padding:30px;
    overflow-y:auto;
}

.report-preview-title{
    font-size:28px;
    font-weight:bold;
    margin-bottom:25px;
}

.report-preview-body{
    background:#1e293b;
    min-height:700px;
    border-radius:12px;
    padding:25px;
    border:1px solid #334155;
}

.report-view-active{
    display:flex !important;
}

.ia-suggestion-btn{\n    background:#2563eb;\n    color:white;\n    border:none;\n    padding:14px 18px;\n    border-radius:8px;\n    cursor:pointer;\n    font-weight:bold;\n    margin-right:10px;\n}\n\n.ia-suggestion-btn:hover{\n    background:#1d4ed8;\n}\n

.ia-suggestion-btn{
    background:#2563eb;
    color:white;
    border:none;
    padding:14px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    margin-right:10px;
}

.ia-suggestion-btn:hover{
    background:#1d4ed8;
}


/* =========================
   STATUS ONLINE/OFFLINE
========================= */

.status-card.online .status-dot{
    background:#00ff66;
    box-shadow:0 0 10px #00ff66;
}

.status-card.offline .status-dot{
    background:#ff0000;
    box-shadow:0 0 10px #ff0000;
}

.status-grid{
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    overflow-x:auto;
    white-space:nowrap;
}

.status-card{
    min-width:90px;
    flex:0 0 auto;
}


/* =========================
   FORCE SINGLE LINE STATUS BAR
========================= */

.system-status-panel{
    overflow-x:auto;
}

.status-grid{
    width:max-content;
    min-width:100%;
}

/* =========================
   GEOINT IA MODAL
========================= */

.ia-modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    overflow:auto;
}

.ia-modal-content{
    background:#13283d;
    margin:40px auto;
    padding:30px;
    width:90%;
    max-width:1400px;
    border:2px solid #00ff88;
    border-radius:12px;
    color:white;
}

.ia-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

#close-ia-modal{
    background:red;
    color:white;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    font-size:18px;
}

#ia-response-content{
    white-space:pre-wrap;
    line-height:1.7;
    font-size:15px;
    max-height:75vh;
    overflow-y:auto;
}

.ia-loading{
    display:none;
    color:#00ff88;
    font-weight:bold;
    margin-bottom:20px;
}
/* =========================
   EVIDENCE PANEL
========================= */

#evidence-panel{
    margin-top:15px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.evidence-item{
    background:#0b1622;
    border:1px solid #00ff88;
    border-radius:8px;
    padding:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}

.evidence-info{
    display:flex;
    flex-direction:column;
    gap:4px;
    color:white;
}

.evidence-actions{
    display:flex;
    gap:10px;
}

.evidence-btn{
    border:none;
    padding:8px 12px;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

.evidence-context-btn{
    background:#0077cc;
    color:white;
}

.evidence-remove-btn{
    background:#cc0000;
    color:white;
}

/* =========================
   GEOINT CONTEXT REDESIGN
========================= */

.context-grid{
    display:grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap:25px;
    align-items:start;
}

.context-card{
    width:100%;
    min-height:auto !important;
}

.context-card textarea{
    min-height:220px;
}

.context-card select,
.context-card input[type="file"]{
    width:100%;
}

#evidence-panel{
    margin-top:20px;
    max-height:260px;
    overflow-y:auto;
    padding-right:5px;
}

.evidence-item{
    width:100%;
    box-sizing:border-box;
}

.validation-container{
    margin-top:20px;
    width:100%;
}

.validation-actions{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
}

.validation-actions button{
    flex:1;
    min-width:220px;
}

@media(max-width:1200px){

    .context-grid{
        grid-template-columns:1fr;
    }

}

/* ========================================
   NUEVO LAYOUT GEOINT 8.X
======================================== */

#geoint-map,
#street-view{
    height: 720px !important;
    min-height: 720px !important;
}

/* PANEL INFERIOR */

.bottom-report-layout{
    display:flex;
    gap:20px;
    margin:20px;
    align-items:flex-start;
}

/* SIDEBAR */

.report-sidebar{
    width:320px;
    min-width:320px;
    height:auto;
    background:#111827;
    border:1px solid #1f2937;
    border-radius:12px;
}

/* PREVIEW */

.report-content{
    flex:1;
    background:#111827;
    border:1px solid #1f2937;
    border-radius:12px;
    padding:20px;
}

/* HEADER MÁS LIMPIO */

.geoint-header{
    padding:20px 40px;
}

.header-logo img{
    width:130px;
}

/* BOTÓN IA */

.ia-suggestion-btn{
    background:#0f766e;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
}

.ia-suggestion-btn:hover{
    background:#14b8a6;
}

/* MODAL IA */

.ia-response-actions{
    display:flex;
    gap:20px;
    justify-content:center;
    margin-top:30px;
}

#accept-ia-suggestion{
    background:#006400;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}

#reject-ia-suggestion{
    background:#8b0000;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}

