/* Dodatkowe poprawki dla interfejsu */

/* Blok info */
#block-info {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 5px !important;
    max-width: 220px !important;
    font-size: 12px !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    border: 1px solid #ffcc00 !important;
}

#block-name {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    color: #ffcc00 !important;
}

#block-properties div {
    margin-bottom: 2px !important;
}

/* Układ interfejsu */
#hud {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    padding: 5px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

#inventory {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    max-width: 300px !important;
    pointer-events: auto !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

.inventory-slot {
    width: 35px !important;
    height: 35px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #555 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border-radius: 3px !important;
}

.inventory-slot.selected {
    border-color: #ffcc00 !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-2px) !important;
}

#equation-builder {
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    pointer-events: auto !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

#current-equation {
    color: white !important;
    font-size: 14px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 5px 8px !important;
    border-radius: 3px !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    border: 1px solid #ffcc00 !important;
}

#check-equation {
    background-color: #4caf50 !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    border: 1px solid white !important;
}

#game-controls {
    margin-top: 5px !important;
    display: flex !important;
    gap: 5px !important;
    pointer-events: auto !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

#game-controls button {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 1px solid #ffcc00 !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 3px !important;
}

/* Przyciski interakcji */
#interaction-buttons {
    position: fixed !important;
    left: 10px !important;
    bottom: 10px !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

#toggle-inventory-btn {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 2px solid #ffcc00 !important;
    border-radius: 5px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

/* Stan zwinięty */
.hud-collapsed #inventory,
.hud-collapsed #equation-builder,
.hud-collapsed #game-controls,
.hud-collapsed #math-shortcuts {
    display: none !important;
}

.hud-collapsed #toggle-inventory-btn {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Poprawka dla skrótów matematycznych */
#math-shortcuts {
    display: flex !important;
    gap: 3px !important;
    margin-top: 5px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 5px !important;
    border-radius: 5px !important;
    pointer-events: auto !important;
}

.math-shortcut {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 1px solid #999 !important;
    border-radius: 3px !important;
}