.rack-container {
    border: 2px solid #333;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.rack-frame {
    border: 1px solid #ccc;
    background: white;
}

.rack-units {
    display: flex;
    flex-direction: column-reverse;
}

.rack-unit {
    height: 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    transition: all 0.2s;
}

.rack-unit.free {
    background-color: #f8f9fa;
}

.rack-unit.occupied {
    color: white;
    font-weight: bold;
}

.unit-number {
    width: 40px;
    font-size: 12px;
    color: #666;
}

.rack-unit.occupied .unit-number {
    color: white;
}

.device-info {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.device-name {
    font-weight: bold;
}

.device-type, .device-size {
    font-size: 12px;
    opacity: 0.9;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
}