/* Estrutura Base das Janelas */
.window {
    position: absolute;
    background: rgba(5, 5, 5, 0.95);
    border: 2px solid #00ffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    z-index: 1000;
    transition: top 0.2s ease-out, left 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out;
}

.window-header {
    background: #00ffff;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    color: inherit;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* Variação Específica: O Terminal */
.terminal-window {
    border-color: #ff003c;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}

.terminal-header {
    background: #ff003c;
    color: #fff;
}

/* Container dos controles da janela */
.window-controls {
    display: flex;
    gap: 2px;
}

/* Botões individuais de controle */
.control-btn {
    background: transparent;
    color: inherit;
    border: none;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
    font-family: monospace;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: #ff003c !important;
    color: #fff !important;
}

/* Estado Maximizado Blindado */
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 60px) !important; /* Desconta a barra de tarefas com precisão milimétrica */
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    transform: none !important;
    border-bottom: 2px solid #00ffff !important;
    transition: all 0.2s ease-out;
}

/* Garante que o header da janela nunca fique espremido */
.window-header {
    background: #00ffff;
    color: #000;
    padding: 8px 10px; /* Aumentei o respiro (padding) para a "barrinha" ficar mais elegante */
    font-weight: bold;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
