/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
}

#canvasWrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    touch-action: none; /* Previne zoom do navegador */
    -webkit-user-select: none;
    user-select: none;
}
#cv {
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Console */
#consoleContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: #1e1e1e;
    color: #00ff00;
    border-top: 2px solid #333;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.console-hidden {
    transform: translateY(100%);
}

.console-header {
    background: #2d2d2d;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: between;
    align-items: center;
}

.console-header h5 {
    color: #00ff00;
    margin: 0;
    flex: 1;
}

.console-content {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.console-content div {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Botões flutuantes */
.position-fixed .btn {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    font-weight: 500;
}

/* Modais personalizados */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Tabelas de informações */
#macTable table, #arpTable table {
    width: 100%;
    font-size: 12px;
    background: #f8f9fa;
    border-radius: 5px;
}

#macTable th, #arpTable th {
    background: #e9ecef;
    padding: 8px;
    font-weight: 600;
}

#macTable td, #arpTable td {
    padding: 6px 8px;
    border-bottom: 1px solid #dee2e6;
}

/* Lista de projetos */
.project-list {
    max-height: 300px;
    overflow-y: auto;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.project-item:hover {
    background-color: #f8f9fa;
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
}

.project-date {
    font-size: 12px;
    color: #6c757d;
}

/* Estados dos botões */
.btn.active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

#linkModeBtn.active {
    background-color: #ffc107;
    border-color: #ffc107;
}

/* Responsividade */
@media (max-width: 768px) {
    .position-fixed {
        position: absolute !important;
    }
    
    .btn-group-vertical {
        flex-direction: row;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .toolbar button {
        min-height: 44px; /* Tamanho mínimo para touch */
        min-width: 44px;
        padding: 12px;
    }
    
    #consoleContainer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30vh;
    }
}