//* =======================================================
   PROJECT ATLAS
   ======================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    height:100%;

    background:#111417;

    color:#ececec;

    font-family:Segoe UI,Arial,sans-serif;

}

/* ================= HEADER ================= */

.topbar{

    height:64px;

    background:#1c2127;

    border-bottom:1px solid #343b43;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 24px;

}

.topbar h1{

    font-size:28px;

    font-weight:600;

    letter-spacing:0.5px;

}

.backButton{

    color:#7ec8ff;

    text-decoration:none;

    font-size:16px;

}

.backButton:hover{

    color:white;

}

#atlasVersion{

    color:#888;

    font-size:14px;

}

/* ================= MAIN ================= */

.atlasLayout{

    display:grid;

    grid-template-columns:1fr 360px;

    height:calc(100vh - 64px);

}

/* ================= MAP ================= */

.mapPanel{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:#15191d;

}

.panelTitle{

    height:46px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 16px;

    font-size:17px;

    border-bottom:1px solid #2d343b;

    background:#1b2026;

}

#mapContainer{

    position:relative;

    flex:1;

    overflow:auto;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    padding:20px;

}

#svgHolder{

    width:100%;

    max-width:1200px;

    position:relative;

    z-index:1;

}

#svgHolder svg{

    width:100%;

    height:auto;

    display:block;

}

/* ================= RIGHT PANEL ================= */

.sidePanel{

    background:#181c20;

    border-left:1px solid #2d343b;

    overflow-y:auto;

    padding:16px;

}



/* ================= CARDS ================= */

.card{

    background:#23282e;

    border:1px solid #343b43;

    border-radius:10px;

    margin-bottom:18px;

    overflow:hidden;

}

.cardTitle{

    background:#2c333b;

    padding:12px 16px;

    font-size:17px;

    font-weight:600;

    border-bottom:1px solid #404852;

}

.planningHint{

    font-size:11px;
    color:#888;
    margin-top:4px;
    margin-bottom:6px;

}

.planningValidation{

    min-height:18px;
    font-size:11px;
    margin-top:4px;
    color:#888;

}

.planningValidation.error{

    color:#d93025;
    font-weight:600;

}

.planningValidation.success{

    color:#2e7d32;
    font-weight:600;

}

.inputError{

    border:1px solid #d93025 !important;

}

.inputSuccess{

    border:1px solid #2e7d32 !important;

}

.infoTable{

    width:100%;

    border-collapse:collapse;

}

.infoTable td{

    padding:10px 16px;

    border-bottom:1px solid #2f363d;

    font-size:15px;

}

.infoTable td:first-child{

    width:120px;

    color:#8fa2b5;

}

.infoTable tr:last-child td{

    border-bottom:none;

}

/* ================= FUTURE ================= */

#futureArea{

    padding:20px;

    text-align:center;

    color:#888;

    font-style:italic;

}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#555;

    border-radius:6px;

}

::-webkit-scrollbar-track{

    background:#222;

}

/* ================= MOBILE ================= */

@media (max-width:1000px){

.atlasLayout{

    grid-template-columns:1fr;

}

.sidePanel{

    border-left:none;

    border-top:1px solid #333;

}

}
/* ==========================================
   LABEL LAYER
========================================== */


#svgHolder{

    position:relative;
    z-index:1;

}



/* ==========================================
   LABEL ENGINE
========================================== */

.atlasLabel{

    position:absolute;

    top:0;

    left:0;

    font-family:Segoe UI,sans-serif;

    color:white;

    font-size:11px;

    user-select:none;

}

.tileID{

    text-align:center;

    font-weight:700;

    margin-bottom:3px;

}

.namePlate{

    display:flex;

    align-items:center;

    border-radius:5px;

    overflow:hidden;

    background:#666;

    border:1px solid #888;

}

.levelBox{

    background:#444;

    border-right:1px solid #999;

    padding:2px 6px;

    font-weight:700;

}

.plateText{

    padding:2px 8px;

    white-space:nowrap;

}

/* ==========================================
   MAP TOOLBAR
========================================== */

#mapToolbar{

    display:flex;

    align-items:center;

    gap:16px;

    padding:0;

    border:none;

    background:transparent;

    font-family:Segoe UI, Arial, sans-serif;

    font-size:13px;

    color:#ececec;

}

#customPlanningPanel{

    display:none;

    margin-top:10px;

    padding:10px;

    background:#23272d;

    border:1px solid #3b4048;

    border-radius:6px;

}

#mapToolbar label{

    display:flex;

    align-items:center;

    gap:5px;

    color:#ececec;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

}

#mapToolbar button{

    height:24px;

    padding:0 10px;

    background:#2d343b;

    color:#ececec;

    border:1px solid #555;

    border-radius:4px;

    font-size:12px;

    font-family:inherit;

    cursor:pointer;

}

#mapToolbar button:hover{

    background:#3a424b;

}

#planningAlliance {

    min-width: 150px;

    padding: 4px 8px;

    background: #2b3038;

    color: white;

    border: 1px solid #555;

    border-radius: 4px;

}

#planningAlliance:disabled {

    opacity: .45;

}
