/* Reset geral para garantir consistência */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace; /* Fonte monoespaçada global */
    /* Removendo efeitos de suavização de fonte para um visual mais pixelado */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: #c0c0c0; /* Cinza claro para o fundo do body */
    color: #000; /* Cor padrão do texto */
}

header {
    background-color: #808080; /* Cinza médio para o cabeçalho */
    color: #000; /* Texto preto no cabeçalho */
    padding: 0.5rem; /* Reduzindo o preenchimento */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000; /* Borda inferior preta */
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo::before {
    content: " "; /* Removendo o ícone */
    margin-right: 5px;
    font-size: 1.2rem;
}

.header-buttons {
    display: flex;
    gap: 5px;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 250px; /* Reduzindo a largura da barra lateral */
    background-color: #f0f0f0; /* Cinza claro para a barra lateral */
    padding: 0.8rem; /* Reduzindo o preenchimento */
    border-right: 2px solid #808080; /* Borda cinza */
    overflow-y: auto;
    font-size: 0.9rem; /* Reduzindo o tamanho da fonte */
}

.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    cursor: grab;
    /* Desativando a suavização de imagem no mapa */
    image-rendering: pixelated;
}

#map.drawing {
    cursor: pointer;
}

.tools-panel {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #c0c0c0;
    padding: 8px;
    border: 2px solid #808080;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    font-family: monospace;
}

.panel-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
    font-size: 0.9rem;
}

.tool-btn {
    padding: 5px 8px;
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #808080;
    border-radius: 0;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    font-family: monospace;
}

.tool-btn:hover {
    background-color: #e0e0e0;
}

.tool-btn.active {
    background-color: #d0d0d0;
}

.tool-btn:disabled {
    background-color: #a0a0a0;
    color: #606060;
    border-color: #606060;
    cursor: not-allowed;
    transform: none;
}

.property-form {
    margin-bottom: 15px;
}

.section-title {
    font-size: 1rem;
    color: #000;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
}

.form-group {
    margin-bottom: 8px;
}

label {
    display: block;
    margin-bottom: 3px;
    font-weight: normal; /* Removendo o negrito */
    color: #000;
    font-size: 0.8rem;
}

input,
select {
    width: 100%;
    padding: 6px;
    border: 1px solid #808080;
    border-radius: 0;
    transition: none;
    font-family: monospace;
    font-size: 0.8rem;
    background-color: #fff; /* Fundo branco para os inputs */
    color: #000;
}

input:focus,
select:focus {
    border-color: #000;
    outline: none;
}

.results-panel {
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #808080;
    border-radius: 0;
    box-shadow: none;
    margin-top: 10px;
    font-size: 0.8rem;
}

.result-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-value {
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

.drawing-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(128, 128, 128, 0.9); /* Cinza semi-transparente */
    color: #000;
    padding: 8px 12px;
    border-radius: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: none;
    font-size: 0.8rem;
}

.key-hint {
    background-color: #a0a0a0;
    padding: 2px 5px;
    border-radius: 0;
    font-weight: bold;
    color: #000;
}

.instructions {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #808080;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    max-width: 200px;
    font-size: 0.8rem;
}

.instructions h3 {
    margin-bottom: 5px;
    color: #000;
    font-size: 1rem;
}

.instructions ul {
    padding-left: 15px;
}

.instructions li {
    margin-bottom: 5px;
    color: #000;
}

.point-counter {
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: #fff;
    padding: 6px 10px;
    border: 1px solid #808080;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    display: none;
    font-size: 0.8rem;
}

.footer {
    padding: 8px;
    text-align: center;
    background-color: #404040; /* Cinza escuro para o rodapé */
    color: #fff;
    font-size: 0.7rem;
    border-top: 2px solid #000;
}

.highlight {
    color: #000;
    font-weight: bold;
    text-decoration: underline; /* Adicionando sublinhado */
}

.validation-error {
    color: #ff0000; /* Vermelho */
    font-weight: bold;
    margin-top: 3px;
    display: none;
    font-size: 0.8rem;
}

.area-comparison {
    margin-top: 10px;
    padding: 8px;
    background-color: #e0e0e0;
    border: 1px solid #808080;
    border-radius: 0;
    border-left: 4px solid #000;
}
