/******************************************************
   DARK BLUE NEON — ATLASINFO VIEWER
******************************************************/

/* ===============================
   FUNDO GLOBAL
================================ */
html, body {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,140,255,0.20), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,90,255,0.18), transparent 60%);
    background-attachment: fixed;
    background-color: #050912;
    color: #cfe4ff;
}

/* Overlay escuro */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #050912;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

/* Conteúdo acima do overlay */
body > * {
    position: relative;
    z-index: 1;
}

/* ===============================
   PAINEL DE CONTROLOS
================================ */
#controls {
    background: linear-gradient(to bottom, #07101f, #040a14);
    border: 1px solid rgba(0,140,255,0.35);
    box-shadow: 0 0 25px rgba(0,140,255,0.25);
    color: #cfe4ff;
}

/* Labels */
#controls label {
    color: #9ecaff;
    font-weight: 600;
}

/* Links */
#controls a {
    color: #63bfff;
}
#controls a:hover {
    color: #ffffff;
}

/* ===============================
   INPUTS & BOTÕES
================================ */
#controls input[type="file"],
#controls input[type="text"],
#controls textarea {
    background: rgba(0,15,40,0.55);
    border: 1px solid rgba(0,120,255,0.25);
    color: #cfe4ff;
    border-radius: 6px;
    padding: 6px;
}

/* Focus */
#controls input:focus,
#controls textarea:focus {
    outline: none;
    border-color: #009aff;
    box-shadow: 0 0 14px rgba(0,140,255,0.45);
}

/* Botões */
#controls button {
    background: #009aff;
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,150,255,0.5);
}

#controls button:hover {
    background: #00b7ff;
}

/* ===============================
   SLIDER (SCALE)
================================ */
#scale {
    accent-color: #009aff;
}

/* ===============================
   LOG (TEXTAREA)
================================ */
#controls textarea {
    box-shadow: inset 0 0 10px rgba(0,120,255,0.15);
}

/* ===============================
   CANVAS
================================ */
canvas {
    background: #ffffff;
    border: 1px solid rgba(0,140,255,0.35);
    box-shadow: 0 0 30px rgba(0,140,255,0.25);
    margin: 10px auto;
    display: block;
}

/******************************************************
   FIM DO TEMA NEON
******************************************************/

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
}

/* Caixa principal */
.modal-content {
    background: linear-gradient(to bottom, #07101f, #040a14);
    border: 1px solid rgba(0,140,255,0.4);
    box-shadow: 0 0 40px rgba(0,140,255,0.45);
    color: #cfe4ff;

    width: 520px;
    max-width: 92vw;
    padding: 20px;

    margin: 120px auto;
    border-radius: 10px;
}

/* Título */
.modal-content h3 {
    margin-bottom: 10px;
    color: #cfe4ff;
    text-align: center;
}

/* Labels */
.modal-content label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #9ecaff;
}

/* Inputs */
.modal-content input {
    width: 100%;
    margin-top: 4px;
    padding: 7px;
    background: rgba(0,15,40,0.6);
    border: 1px solid rgba(0,120,255,0.3);
    color: #cfe4ff;
    border-radius: 6px;
}

/* Inputs desativados */
.modal-content input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* GRID (Base / Tamanho) */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* Botões */
.modal-buttons {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
    background: #009aff;
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 8px 0;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,150,255,0.5);
    font-weight: 600;
}

.modal-buttons button:hover {
    background: #00b7ff;
}

/* Botão fechar ligeiramente diferente */
#close_modal {
    background: #444;
    box-shadow: none;
}

#close_modal:hover {
    background: #666;
}

/* ===============================
   LEGENDA DE ÍCONES
================================ */
.icon-legend {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9ecaff;
}

.icon-legend div {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,15,40,0.45);
    border: 1px solid rgba(0,120,255,0.25);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: inset 0 0 8px rgba(0,120,255,0.15);
}

/* Ícones */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-weight: bold;
    color: #ffffff;
}

/* Cores por ação */
.icon.move {
    color: #63bfff;
}

.icon.edit {
    color: #00ffae;
}

.icon.delete {
    color: #ff5c5c;
}

/* Copyright mais discreto */
.copyright {
    margin-top: 8px;
    font-size: 12px;
    color: #6fa8ff;
}

/* Texto de ajuda */
.hint {
    margin-top: 6px;
    line-height: 1.4;
}

#add_map {
    background: #00ffae;
    box-shadow: 0 0 14px rgba(0,255,174,0.5);
}

#add_map:hover {
    background: #33ffd1;
}

